Skip to content
Paul Dilyard edited this page Mar 29, 2015 · 11 revisions

Development

  1. Install Vagrant
  2. Install VirtualBox
  3. Clone this repository
  4. cp config/config_example.js config/config.js
  5. Open config/config.js and enter desired values
  6. vagrant up
  7. npm run build
Run tests:

Simply run: npm test

This is an alias for: vagrant ssh -c 'cd /vagrant && mocha'

Start the server:

To actually start/restart the dev server, just run npm start.

This is an alias for: vagrant ssh -c 'cd /vagrant && pm2 startOrRestart processes.json'

Production

We're running Ubuntu 14.04LTS in production. The provision.sh script should install and setup everything you need to run the app, as long as you put the repository in /var/www/kenthackenough.

  1. Clone this repository
  2. cp config/config_example.js config/config.js
  3. Open config/config.js and enter desired values
  4. npm install
  5. npm rebuild
  6. ./provision.sh

Clone this wiki locally