mashery/iodocs — pull request #13 by synedra (2012-01-07 00:18:22+00:00)
Title: Provide needed pieces for Heroku

To test on normal system, just run it. Should be no differences.

For heroku, get heroku setup as defined here: http://devcenter.heroku.com/articles/node-js

Copy config.json.sample to config.json

Before you deploy to heroku, config.json needs to be in the repository, so you can git init the directory so it's no longer tied to the iodocs master stuff, or just add it and delete it later. Pull a clone of my repo if you want :-)

So either (reset your repo):
% git init
% git add .
% git add -f config.json
% git commit -m "init"

or (update the current one):
git add config.json
git commit -a

% heroku create --stack cedar;
% heroku addons:add redistogo
% heroku addons:add logging
% git push heroku master
% heroku ps:scale web=1

This'll should get you a working app at .herokuapp.com