snipt/README.md

1.1 KiB

Snipt

This is the codebase for the website, Snipt.net.

Running the Django app

  1. Clone the repo.
  2. Setup a virtualenv.
  3. pip install -r requirements.txt
  4. pip install --index-url https://code.stripe.com --upgrade stripe
  5. python manage.py syncdb
  6. python manage.py migrate
  7. python manage.py runserver
  8. If you created a superuser in the syncdb step, you need to also run python manage.py backfill_api_keys to generate an API key for that user.

Deploying to Heroku

  1. Clone the repo.
  2. heroku create
  3. heroku config:add DEBUG=True
  4. heroku config:add INTERCOM_SECRET_KEY=
  5. heroku config:add POSTMARK_API_KEY=
  6. heroku config:add RAVEN_CONFIG_DSN=
  7. heroku config:add SECRET_KEY=
  8. heroku config:add STRIPE_SECRET_KEY=
  9. git push heroku
  10. heroku run pip install --index-url https://code.stripe.com --upgrade stripe
  11. heroku run python manage.py syncdb
  12. heroku run python manage.py migrate

Any problems / questions / bugs, create an issue. Thanks! :)