You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
9 years ago | |
---|---|---|
.docker | 9 years ago | |
accounts | 9 years ago | |
blogs | 9 years ago | |
jobs | 10 years ago | |
media | 9 years ago | |
snipts | 9 years ago | |
static | 9 years ago | |
templates | 9 years ago | |
utils | 9 years ago | |
.ffignore | 11 years ago | |
.gitignore | 9 years ago | |
.kick | 11 years ago | |
.venv | 12 years ago | |
LICENSE | 10 years ago | |
Makefile | 9 years ago | |
Procfile | 9 years ago | |
README.md | 9 years ago | |
__init__.py | 12 years ago | |
admin.py | 12 years ago | |
git-pre-commit | 9 years ago | |
manage.py | 10 years ago | |
monitor.py | 12 years ago | |
requirements.txt | 9 years ago | |
settings.py | 9 years ago | |
settings_local.py-template | 9 years ago | |
urls.py | 9 years ago | |
views.py | 9 years ago | |
wsgi.py | 9 years ago |
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 addons:add heroku-postgresql:standard-0
heroku addons:add bonsai
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 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! :)