Node.js
From PlcWiki
(Difference between revisions)
m (Created page with '== Instalace == * 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 c…') |
m (→Instalace prostředí a aplikace) |
||
(7 intermediate revisions not shown) | |||
Line 1: | Line 1: | ||
- | == Instalace == | + | == Instalace prostředí a aplikace == |
* sudo yum install npm | * sudo yum install npm | ||
* cd /usr/lib (zde se nachází adresář node_modules) | * cd /usr/lib (zde se nachází adresář node_modules) | ||
+ | * npm install -g inherits | ||
* npm install -g node-gyp | * npm install -g node-gyp | ||
* npm install -g pm2 | * npm install -g pm2 | ||
- | * cd | + | * cd /opt/node/myappdir |
* git clone | * git clone | ||
* npm install | * npm install | ||
- | * pm2 start app-pm2.json | + | * export NODE_ENV=production |
+ | * pm2 start app-pm2.json (resp. /opt/node/processes.json) |
Current revision as of 07:17, 30 May 2014
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 /opt/node/myappdir
- git clone
- npm install
- export NODE_ENV=production
- pm2 start app-pm2.json (resp. /opt/node/processes.json)