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"
$ sudo apt-get update
- If chef is in the repository for your distribution:
$ sudo apt-get install chef
. Otherwise, install chef some other way. - Do not input anything when prompted to select a chef-server. Just press Enter.
wget https://dl.dropboxusercontent.com/s/pcnysdzaie6wr58/postgres.json
sudo 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
sudo pip install -r Tsune/requirements/docs.txt
cd Tsune && sudo pip install -r requirements/docs.txt && python manage.py syncdb --settings=tsune.settings.base && python manage.py migrate --settings=tsune.settings.base && python manage.py runserver --settings=tsune.settings.base