-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Damien Brugne edited this page Jan 12, 2015
·
56 revisions
- MongoDB production: localhost:27017/donut via SSH on : damien@5.196.206.60:22 (private key)
- Redis production: localhost:6379 via SSH on : damien@5.196.206.60:22 (password)
- node.js + npm
- MongoDB
- Redis
- Bower (installed as npm -g)
- nginx
Install global package (as root):
sudo su
npm install pomelo -g
npm install pomelo-cli -g
exit
Clone the GitHub project: https://github.com/dbrugne/donut.git
Install dependencies:
cd donut
npm install
cd game-server
npm install
cd ../web-server
npm install
bower install
cd ..
Create logs dir:
cd game-server
mkdir logs
cd ..
Launch applications (PM2):
cd /home/donut
vim web.json
{
"name" : "web",
"script" : "./app.js",
"cwd" : "/home/donut/app/web-server",
"exec_mode" : "fork_mode",
"env": {
"NODE_ENV": "test",
"DEBUG": "donut:*",
}
}
vim ws.json
{
"name" : "ws",
"script" : "./app.js",
"cwd" : "/home/donut/app/game-server",
"exec_mode" : "fork_mode",
"env": {
"NODE_ENV": "test",
"DEBUG": "*",
}
}
pm2 start web.json
pm2 start ws.json
Use pomelo-cli: