From Hentschel
Created page with "installed on '''bbb01''' === install node app + requirements === install node.js if required. Then: sudo npm install express sudo npm install morgan -S sudo npm insta..."
installed on '''bbb01'''
=== install node app + requirements ===
install node.js if required. Then:
sudo npm install express
sudo npm install morgan -S
sudo npm install body-parser -S
sudo npm install method-override -S
sudo npm install request -S
sudo npm install core-js -S
sudo npm install regenerator-runtime -S
sudo npm install exceljs -S
=== PM2 ===
pm2 is the app manager used for the node.js app. It starts automatically with the default user account (not root)
* logging
pm2 log --lines 600
* status
pm2 status
* initial start, or after removing app (don't do this if the app is already installed and running). In the app directory:
pm2 start server.js --watch --ignore-watch="node_modules"
pm2 save
* removing app from pm2
pm2 delete server
* reloading app
pm2 reload server
=== install node app + requirements ===
install node.js if required. Then:
sudo npm install express
sudo npm install morgan -S
sudo npm install body-parser -S
sudo npm install method-override -S
sudo npm install request -S
sudo npm install core-js -S
sudo npm install regenerator-runtime -S
sudo npm install exceljs -S
=== PM2 ===
pm2 is the app manager used for the node.js app. It starts automatically with the default user account (not root)
* logging
pm2 log --lines 600
* status
pm2 status
* initial start, or after removing app (don't do this if the app is already installed and running). In the app directory:
pm2 start server.js --watch --ignore-watch="node_modules"
pm2 save
* removing app from pm2
pm2 delete server
* reloading app
pm2 reload server