-
Notifications
You must be signed in to change notification settings - Fork 11
Setup
Paul Dilyard edited this page Oct 9, 2015
·
11 revisions
- Install Vagrant
- Install VirtualBox
- Clone this repository
cp config/config_example.js config/config.js
- Open
config/config.js
and enter desired values vagrant up
Simply run: make vm:test
This will SSH into the VM and run the mocha tests.
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 make vm:server
.
To start the server in the "background" with PM2, just type: make start
.
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
.
- Clone this repository
cp config/config_example.js config/config.js
- Open
config/config.js
and enter desired values ./provision.sh
npm install
npm rebuild
make start
There are several make
commands available to make your life easier. Here they are:
make test # Runs tests
make server # Runs a debugging server
make start # Starts the pm2 process
make stop # Stops the pm2 process
These tests all act on your local machine. If you would like to run the same commands on the Vagrant VM without SSHing, just prepend vm:
to the command, like this:
make vm:test # SSHs into the VM, runs all the tests, and then closes the connection
make vm:start # Starts the pm2 process on the VM
...