Node.js

From PlcWiki

Revision as of 07:15, 30 May 2014 by Mcaslava (Talk | contribs)
Jump to: navigation, search

Instalace prostředí a aplikace

  • sudo yum install npm
  • cd /usr/lib (zde se nachází adresář node_modules)
  • npm install -g inherits
  • 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 (resp. /opt/node/processes.json)
Personal tools