Skip to content

Running a NodeJS app on a VM using Vagrant and Ruby, setting up CI/CD in Jenkins.

Notifications You must be signed in to change notification settings

Farah-H/jenkins_vagrant_practice

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

If you can see this in Master branch, Jenkins Pipeline is working correctly #1

Sparta NodeJs Sample APP DevEnv and CI

This repo will be a dev env you can copy and setup by running vagrant up

Pre-Requisites

Instructions and step by step

  1. Clone this repo
  2. Run vagrant up in your terminal in that location
  3. go to 192.168.10.100 in your browser to see the homepage for the jsnode app
  4. this should also work on 192.168.10.100
  5. if you go to 192.168.10.100:3000 this should also be available there
  6. if you go to 192.168.10.100/fibonacci/{} where {} is any number you should see the fibonacci page is also working.
  7. finally, if you go to 192.168.10.100/posts you should see a posts page if the DB is working properly.

Jenkins how to read from a different branch

How to create and push to a new branch using GitBash

To create a branch type the following in bash, in a tracked directory

git checkout -b <branch>

changing to an existing branch

git checkout <branch>

commit to branch as normal

git add . 
git commit -m "comment"

once committed you can push specific branches to origin

git push origin <branch>

About

Running a NodeJS app on a VM using Vagrant and Ruby, setting up CI/CD in Jenkins.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published