Node.js

From PlcWiki

(Difference between revisions)
Jump to: navigation, search
m (Instalace prostředí a aplikace)
m (Instalace prostředí a aplikace)
Line 9: Line 9:
* npm install
* npm install
* export NODE_ENV=production
* export NODE_ENV=production
-
* pm2 start app-pm2.json -i max
+
* pm2 start app-pm2.json

Revision as of 04:45, 8 October 2013

Instalace prostředí a aplikace

  • sudo yum install npm
  • cd /usr/lib (zde se nachází adresář node_modules)
  • npm install -g node-gyp
  • npm install -g pm2
  • cd path/opt/node/myappdir
  • git clone
  • npm install
  • export NODE_ENV=production
  • pm2 start app-pm2.json
Personal tools