Skip to content

Instantly share code, notes, and snippets.

@OmkarKirpan
Forked from tomysmile/strong-pm-install.md
Created September 17, 2018 11:41
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 OmkarKirpan/7781fee8c089b9981389edaa76a99830 to your computer and use it in GitHub Desktop.
Save OmkarKirpan/7781fee8c089b9981389edaa76a99830 to your computer and use it in GitHub Desktop.
Strong-PM install script for new Digital Ocean droplet Ubuntu 14.x w/ node x

install system pre-req

sudo apt-get install build-essential sqlite git

install strong-pm

sudo npm install -g strong-pm --unsafe-perm

Ubuntu below 15.04 :

install strong-pm as a service

sl-pm-install

start strong-pm

/sbin/initctl start strong-pm

on Ubuntu 15.04 > :

Install service:

sudo sl-pm-install --systemd --set-env NODE_ENV=production

start strong-pm

sudo systemctl start strong-pm

run it as service

sudo systemctl enable strong-pm

check status

systemctl status strong-pm

or

sudo tail -f /var/log/upstart/strong-pm.log

be sure you secure your strong-pm!

Setup Basic Authentication

Set up HTTP authentication To secure StrongLoop Process Manager with HTTP authentication, use the --http-auth option to the sl-pm-install command; for example for username "admin" and password "foobar":

$ sudo sl-pm-install --http-auth admin:foobar
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment