1.2 KiB
1.2 KiB
Snipt
This is the codebase for the website, Snipt.net.
Running the Django app
- Clone the repo.
- Setup a virtualenv.
pip install -r requirements.txt
python manage.py syncdb
python manage.py migrate
python manage.py runserver
- 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
- Clone the repo.
heroku create
heroku addons:add heroku-postgresql:hobby-dev
heroku addons:add searchbox
heroku config:add AWS_ACCESS_KEY_ID=
heroku config:add AWS_SECRET_ACCESS_KEY=
heroku config:add AWS_STORAGE_BUCKET_NAME=
heroku config:add DEBUG=False
heroku config:add INTERCOM_SECRET_KEY=
heroku config:add POSTMARK_API_KEY=
heroku config:add RAVEN_CONFIG_DSN=
heroku config:add SECRET_KEY=
heroku config:add STRIPE_SECRET_KEY=
heroku config:add USE_SSL=False
git push heroku
heroku run python manage.py syncdb
heroku run python manage.py migrate
Any problems / questions / bugs, create an issue. Thanks! :)