-
Notifications
You must be signed in to change notification settings - Fork 0
Home
Damien Brugne edited this page Jan 6, 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)
- Uninstall all existing Visual Studio installation and C++ redistributable
- Download and install "Microsoft Visual Studio Express 2012 pour Windows Desktop": http://go.microsoft.com/?linkid=9816758
- Have a functionnal Python runtime (2.5 < version <3.0)
To install Redis on Windows x64 with unofficial port. Built binaries are available in the bin/ folder of this repository: https://github.com/MSOpenTech/redis
Get the ZIP file, uncompress in C:\Program Files\redis
Launch a "Commande line console" as "privileged user".
> cd "Program Files"/redis
> redis-server.exe
Normally now the server run correctly. Quit with CTRL+C.
Now we should configure Redis as a service:
> redis-server --service-install redis.windows.conf --loglevel verbose
> redis-server --service-start
You can use the excellent http://redisdesktop.com/ to browse server from desktop.
Install global package (as root):
sudo su
npm install pomelo -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 ..
Then launch the application (development):
NODE_ENV=dev ./bin/www
Or production:
pm2 restart chat