Skip to content
Dispatch messages
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
conf
controller
ext
lib
public
test
.bowerrc
.gitignore
Gruntfile.js
README.md
app.js
bower.json
package.json

README.md

#Message Center Engine

Install

Dependencies

  • node.js (>= 0.8 required, 0.10.x advised) from this PPA
  • redis-server

Set up

npm install -g grunt-cli
npm install -g pm2

npm install
npm run install

Update the conf file at conf/config.json. The address of the messages endpoints must be set (where messages are polled from).

Developpment

Run the app

Start the stub:

node ext/server.js

Start the app :

node app.js

A test console is available on port 3000

Production

Use pm2 to manage node processes.

To run the maximum processes (regarding the number of proc,vproc or cores available):

pm2 start app.js -i max

Once the processes are started, run the following command (as root/sudo) to create an init script and enable restart with the server :

sudo m2 dump
sudo pm2 startup

Then you can run the usual service /etc/init.d start/stop:

sudo service pm2-init.sh start/stop/restart/status

To list the running processes :

pm2 list
You can’t perform that action at this time.