Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Long-term memory for coders. Share and store code snippets.
branch: master
Failed to load latest commit information.
.docker Update nginx conf.
accounts More Vagrant stuff.
blogs More Vagrant stuff.
jobs Some job stuff and some Mixpanel stuff.
media Copyright styling.
pillar Fix some Salt stuff and omit_code option in API.
salt Fix some Salt stuff and omit_code option in API.
snipts Add stats for users in API.
static Add static.
templates Copyright styling.
utils More Vagrant stuff.
.ffignore ffignore
.gitignore Remove ignored files.
.kick Header for pro-adams theme.
.venv Adding venvs
LICENSE Removing some old Gunicorn stuff and refactors for Django 1.6.
Makefile settings_local in build.
Procfile Working on Heroku integration.
README.md More Vagrant stuff.
Vagrantfile More Vagrant stuff.
__init__.py Moving
admin.py List users by -date_joined in admin
git-pre-commit Cleanup MathJax rendering a bit.
gunicorn.conf.py More Vagrant stuff.
manage.py Removing some old Gunicorn stuff and refactors for Django 1.6.
monitor.py Moving
requirements.txt Oy.
settings.py Oy.
settings_local.py-template Oy.
urls.py Favicon for Heroku.
views.py More Vagrant stuff.
wsgi.py Static templates.

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.

  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! :)

Something went wrong with that request. Please try again.