Skip to content

Instantly share code, notes, and snippets.

@rjmacarthy
Created March 6, 2018 16:26
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rjmacarthy/36457e03a7455251a8d9ed1b62c12044 to your computer and use it in GitHub Desktop.
Save rjmacarthy/36457e03a7455251a8d9ed1b62c12044 to your computer and use it in GitHub Desktop.
Start angular4 app with Jenkins and expose port
#!/bin/bash
pm2 stop angular4
. ~/.nvm/nvm.sh
nvm use 9.7.1
npm install
pm2 start start.sh --name angular4
ng serve --host xxx.xxx.xxx.xxx --port xxxx
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment