db1fa631b3 | ||
---|---|---|
.docker | ||
accounts | ||
blogs | ||
media | ||
pillar | ||
salt | ||
snipts | ||
static | ||
templates | ||
utils | ||
.ffignore | ||
.gitignore | ||
.kick | ||
.venv | ||
LICENSE | ||
Makefile | ||
Procfile | ||
README.md | ||
Vagrantfile | ||
__init__.py | ||
admin.py | ||
git-pre-commit | ||
gunicorn.conf.py | ||
manage.py | ||
monitor.py | ||
requirements.txt | ||
settings.py | ||
settings_local.py-template | ||
urls.py | ||
views.py | ||
wsgi.py |
README.md
Snipt
This is the codebase for the website, Snipt.net.
Running the Django app locally with Vagrant
Install Vagrant and either VirtualBox or VMWare Fusion.
- Clone the repo.
cp settings_local.py-template settings_local.py
- Edit local settings (choose a database password - you'll be prompted for it).
make vagrant
- Visit http://local.snipt.net:8080/.
Deploying to a VM
- Clone the repo.
cp settings_local.py-template settings_local_server.py
- Edit local server settings (choose a database password - you'll be prompted for it).
- Manually change the VM IP address in the Makefile.
make server
Deploying to Heroku
- Clone the repo.
heroku create
heroku addons:add heroku-postgresql:hobby-dev
heroku addons:add searchbox
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! :)