The code for the site at http://data.okfn.org
Requires NodeJS (>= v0.8).
Install the requirements (in package.json):
npm install .
Run the web application locally:
node app.js
Note that you will need to install the Heroku toolbelt to carry out the heroku
commands below.
Skip this step if the application is already deployed
This is heavily based on this tutorial.
# replace {app-name} with the name of your app
heroku create {app-name}
git push heroku master
# now point at our config
heroku ps:scale web=1
Push to heroku git repo:
git push heroku master
Note: if didn't do the create you will need to add the heroku remote:
git remote add heroku [email protected]:{app-name}.git
heroku sharing:add [email protected]
Do the following:
heroku domains:add {your-domain-name}
Now CNAME your domain to {myapp}.herokuapp.com