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 002fbc45c5 Weird COOKIE_DOMAIN issues on some localhosts. 7 years ago
.docker Update nginx conf. 8 years ago
accounts Better naming. 7 years ago
blogs Make Snipt full-width. 7 years ago
media Fix CSS. 7 years ago
pillar Fix some Salt stuff and omit_code option in API. 8 years ago
salt Upgrade gunicorn run. 7 years ago
snipts Remove public tags that aren't popular :(. 7 years ago
static Remove accidental static commits 7 years ago
teams Work on for-teams and pro improvements. 7 years ago
templates Work on for-teams and pro improvements. 7 years ago
user-admin User admin needs to be in a module, now. 7 years ago
utils Don't render full long snipts on list view. 7 years ago
.ffignore ffignore 10 years ago
.gitignore Makefile 7 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 Sass. 7 years ago
Procfile Upgrade gunicorn run. 7 years ago
README.md More Vagrant stuff. 8 years ago
Vagrantfile More Vagrant stuff. 8 years ago
__init__.py Moving 10 years ago
git-pre-commit Cleanup MathJax rendering a bit. 8 years ago
gunicorn.conf.py More Vagrant stuff. 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 More work on Snipt for Teams. 7 years ago
settings.py Weird COOKIE_DOMAIN issues on some localhosts. 7 years ago
settings_local.py-template Recaptcha for teams signup. 7 years ago
urls.py More work on Snipt for Teams. 7 years ago
views.py Work on for-teams and pro improvements. 7 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 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! :)