This is the equivalent of our current WebSockets notifications server, but rewritten using NodeJS and Socks.js. It's main purpose is to allow us to easily deploy it as a separate Heroku instance.
- NodeJS / NPM
- Redis
The server needs the following environment variables to run:
REDISTOGO_URL
: e.g.REDISTOGO_URL="redis://localhost:6379"
Make sure to run npm install
to get the dependencies.
Start using foreman:
foreman start -f Procfile
Also, Procfile.dev is available to start the server in a development environment (currently it only starts Redis in addition).
- Disable
console.log
s on production: Heroku's logging system is quite slow imho.