Snipt: Glitch Edition
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.
 
 
 
 
 
 
Nick Sergeant 1950cb7d94 Moar vagrant. 8 years ago
.docker Update nginx conf. 8 years ago
accounts More Vagrant stuff. 8 years ago
blogs More Vagrant stuff. 8 years ago
jobs Some job stuff and some Mixpanel stuff. 9 years ago
media Static templates. 8 years ago
pillar Work on Vagrant / VMWare support. 8 years ago
salt Moar vagrant. 8 years ago
snipts More Vagrant stuff. 8 years ago
static Add static. 8 years ago
templates Show more helpful error messages w/ declined cards. 8 years ago
utils More Vagrant stuff. 8 years ago
.ffignore ffignore 10 years ago
.gitignore More Vagrant stuff. 8 years ago
.kick Header for pro-adams theme. 10 years ago
.venv Adding venvs 11 years ago
LICENSE Removing some old Gunicorn stuff and refactors for Django 1.6. 9 years ago
Makefile Moar vagrant. 8 years ago
Procfile Working on Heroku integration. 8 years ago
README.md Moar vagrant. 8 years ago
Vagrantfile More Vagrant stuff. 8 years ago
__init__.py Moving 10 years ago
admin.py List users by -date_joined in admin 10 years ago
git-pre-commit Cleanup MathJax rendering a bit. 8 years ago
gunicorn.conf.py Work on Vagrant / VMWare support. 8 years ago
manage.py Removing some old Gunicorn stuff and refactors for Django 1.6. 9 years ago
monitor.py Moving 10 years ago
requirements.txt Work on Vagrant / VMWare support. 8 years ago
settings.py Moar vagrant. 8 years ago
settings_local.py-template Moar vagrant. 8 years ago
urls.py Favicon for Heroku. 8 years ago
views.py More Vagrant stuff. 8 years ago
wsgi.py Static templates. 8 years ago

README.md

Snipt

This is the codebase for the website, Snipt.net.

Running the Django app

Install Vagrant and either VirtualBox or VMWare Fusion.

  1. Clone the repo.
  2. cp settings_local.py-template settings_local.py
  3. Edit local settings (choose a database password - you'll be prompted for it).
  4. make vagrant
  5. Visit http://local.snipt.net:8080/.

Deploying to a VM

  1. Clone the repo.
  2. cp settings_local.py-template settings_local_server.py
  3. Edit local server settings (choose a database password - you'll be prompted for it).
  4. Manually change the VM IP address in the Makefile.
  5. make server

Deploying to Heroku

  1. Clone the repo.
  2. heroku create
  3. heroku addons:add heroku-postgresql:hobby-dev
  4. heroku addons:add searchbox
  5. heroku config:add DEBUG=False
  6. heroku config:add INTERCOM_SECRET_KEY=
  7. heroku config:add POSTMARK_API_KEY=
  8. heroku config:add RAVEN_CONFIG_DSN=
  9. heroku config:add SECRET_KEY=
  10. heroku config:add STRIPE_SECRET_KEY=
  11. heroku config:add USE_SSL=False
  12. git push heroku
  13. heroku run python manage.py syncdb
  14. heroku run python manage.py migrate

Any problems / questions / bugs, create an issue. Thanks! :)