Skip to content

Instantly share code, notes, and snippets.

@pierr
Last active August 29, 2015 14:15
Show Gist options
  • Save pierr/4500cab0fd4137154ab0 to your computer and use it in GitHub Desktop.
Save pierr/4500cab0fd4137154ab0 to your computer and use it in GitHub Desktop.
node-production
echo 'define env variables'
APP_DIRECTORY=/path/directeory
PM2_BIN=node_modules/pm2/bin/pm2
PM2=$APP_DIRECTORY/PM2_BIN
./node-env.sh
APPNAME="APPLICATION NAME"
echo 'Launch the application'
$PM2 start $APP_DIRECTORY
./node-env.sh
echo 'Stop the application the application'
$PM2 stop $APP_DIRECTORY

Lanceur d'application

-Installation d'un lanceur d'application: PM2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment