01d943521f | ||
---|---|---|
.docker | ||
accounts | ||
blogs | ||
jobs | ||
media | ||
snipts | ||
templates | ||
utils | ||
.ffignore | ||
.gitignore | ||
.kick | ||
.venv | ||
LICENSE | ||
Procfile | ||
README.md | ||
__init__.py | ||
admin.py | ||
git-pre-commit | ||
manage.py | ||
monitor.py | ||
requirements.txt | ||
settings.py | ||
urls.py | ||
views.py | ||
wsgi.py |
README.md
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
pip install --index-url https://code.stripe.com --upgrade stripe
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 config:add DEBUG=True
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=
git push heroku
heroku run pip install --index-url https://code.stripe.com --upgrade stripe
heroku run python manage.py syncdb
heroku run python manage.py migrate
Any problems / questions / bugs, create an issue. Thanks! :)