Skip to content

Instantly share code, notes, and snippets.

@stracqan
Last active May 4, 2018 23:03
Show Gist options
  • Save stracqan/0c85e27c2e7da1a38b92 to your computer and use it in GitHub Desktop.
Save stracqan/0c85e27c2e7da1a38b92 to your computer and use it in GitHub Desktop.
StrongLoop Loopback Node.js Production Deploy Commands on Loopback AWS AMI
#######
## StrongLoop Loopback Node.js Production Deployment on Loopback AWS AMI
#######
#first install npm package
npm install -g strong-pm
#then install the service
#since I'm running loopback's AWS AMI, it's critical to use the --upstart=0.6 command
sudo slc pm-install --port 8701 --upstart=0.6
#then run the pm
sudo /sbin/initctl start strong-pm
#finally, deploy your app to the pm
slc deploy http://localhost:8701/
#####NOTE, if you're using a different git branch (and not the standard 'deploy' branch) use the following where 'master' is your main branch. Also, this is run in your apps main directory.
slc deploy http://localhost:8701/ master
#to check for the status
sudo /sbin/initctl status strong-pm
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment