3. Deploying Tsune...
3.1. ...to Heroku
To deploy Tsune on Heroku, just push the repository to it:
$ git push heroku master
After that, you should set the SECRET_KEY environment variable.
To generate a new key, run the following from a python prompt:
from django.utils.crypto import get_random_string
chars = 'abcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*(-_=+)'
print get_random_string(50, chars)
Now set the SECRET_KEY environment variable for your app.
Run the following in your repository root:
heroku config:set SECRET_KEY="paste the generated key here"
3.2. ...on Ubuntu Server
- $ sudo apt-get update
- $ sudo apt-get install chef
- Do not input anything when prompted to select a chef-server. Just press Enter.
- wget https://dl.dropboxusercontent.com/s/pcnysdzaie6wr58/postgres.json
- chef-solo -j postgres.json -r https://dl.dropboxusercontent.com/s/fh3dxy0tbjuoulm/dependencies.tar.gz
- sudo apt-get -y install libpq-dev python-dev firefox xvfb graphviz git-core
- ``git clone https://github.com/DummyDivision/Tsune ``
- cd Tsune && python manage.py syncdb && python manage.py migrate && python manage.py runserver