Skip to content
Damien Brugne edited this page Jan 13, 2015 · 45 revisions

IPv4: 5.196.206.62
Virtual MAC: 02:00:00:14:05:2c
OS: Ubuntu 14.04

VM Template

Installed from VM-template

Deploy Donut app

Get Donut from git and initialize npm environnement

$ sudo su - donut $ mkdir /home/donut/app
$ cd /home/donut/app $ git clone git@github.com:dbrugne/donut.git ./
$ npm update $ cd game-server $ npm update
$ cd ../web-server $ npm update
$ bower update

Run Donut app

Source: https://github.com/unitech/pm2#a1

$ sudo su - donut $ vi /home/donut/web.json

{
  "name" : "web",
  "script" : "./app.js",
  "cwd" : "/home/donut/app/web-server",
  "exec_mode"  : "fork_mode",
    "env": {
        "NODE_ENV": "test",
        "DEBUG": "donut:*",
    }
}

$ vi /home/donut/ws.json

{
  "name" : "ws",
  "script" : "./app.js",
  "cwd" : "/home/donut/app/game-server",
  "exec_mode"  : "fork_mode",
    "env": {
        "NODE_ENV": "test",
        "DEBUG": "donut:*",
    }
}

$ pm2 start /home/donut/web.json
$ pm2 start /home/donut/ws.json
$ pm2 save

Nginx

Clone this wiki locally