snipt/README.md

39 lines
1.4 KiB
Markdown
Raw Normal View History

# Snipt
This is the codebase for the website, [Snipt.net](https://snipt.net/).
# Running the Django app
1. Clone the repo.
2. Setup a virtualenv.
2012-10-02 16:09:39 -07:00
3. `pip install -r requirements.txt`
4. `pip install --index-url https://code.stripe.com --upgrade stripe`
2014-10-20 08:50:04 -07:00
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`
2014-10-20 11:36:07 -07:00
3. `heroku addons:add heroku-postgresql:standard-0`
4. `heroku addons:add bonsai`
2014-10-20 17:21:05 -07:00
5. `heroku config:add AWS_ACCESS_KEY_ID=`
6. `heroku config:add AWS_SECRET_ACCESS_KEY=`
7. `heroku config:add AWS_STORAGE_BUCKET_NAME=`
8. `heroku config:add DEBUG=False`
2014-10-20 17:57:22 -07:00
9. `heroku config:set DISABLE_COLLECTSTATIC=1`
10. `heroku config:add INTERCOM_SECRET_KEY=`
11. `heroku config:add POSTMARK_API_KEY=`
12. `heroku config:add RAVEN_CONFIG_DSN=`
13. `heroku config:add SECRET_KEY=`
14. `heroku config:add STRIPE_SECRET_KEY=`
15. `heroku config:add USE_SSL=False`
16. `git push heroku`
17. `heroku run pip install --index-url https://code.stripe.com --upgrade stripe`
18. `heroku run python manage.py syncdb`
19. `heroku run python manage.py migrate`
2012-09-18 16:36:25 -07:00
Any problems / questions / bugs, [create an issue](https://github.com/nicksergeant/snipt/issues). Thanks! :)