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