gromada_initiative

Created: 2014-05-19 16:25
Updated: 2014-07-05 13:38

README.md

Gromada Initiative

This is just a learning project.

Naming

  • Громадська ініціатива

  • Инициатива Громады

  • Портал городских инициатив

  • Портал міських ініціатив

Heroku Deployment

Install foreman

Use Heroku toolbelt

wget -qO- https://toolbelt.heroku.com/install-ubuntu.sh | sh

Prerequisites

  • Install python, virtualenv, pip
  • virtualenv env; source env/bin/activate
  • pip install -r requirements.txt

Run using honcho (foreman) locally

export DJANGO_SECRET_KEY=yoursecret
# https://github.com/kennethreitz/dj-database-url
export DATABASE_URL=mysql://USER:PASSWORD@HOST:PORT/NAME
# export DATABASE_URL=sqlite://sqlite3.db
export DJANGO_SETTINGS_MODULE=gromada_initiative.settings.development
python manage.py collectstatic --noinput
honcho start

Deploy to heroku

git remote add heroku ...
git push heroku master

Set up environment (one time):

heroku config:set DJANGO_SETTINGS_MODULE=gromada_initiative.settings.heroku
heroku config:set DJANGO_SECRET_KEY=yoursecret

collestatic is run automatically by heroku on push.

DATABASE_URL is set automatically by heroku to the selected database credentials.

Cookies help us deliver our services. By using our services, you agree to our use of cookies Learn more