Skip to content
Paul Dilyard edited this page Sep 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 will SSH into the VM and run the mocha tests.

Start the server:

To run the server on your VM, you have to options. To run it and see all the logging statements on your screen, just type npm run server.

To start the server in the "background" with PM2, just type: npm start.

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. ./provision.sh
  5. npm install
  6. npm rebuild
  7. pm2 start processes.json

Clone this wiki locally