Snipt: Glitch Edition
 
 
 
 
 
 
Go to file
Nick Sergeant bdde0545af Remove CSRF from settings, do in local. 2015-10-26 10:18:01 -04:00
.docker Update nginx conf. 2014-10-06 11:11:20 -04:00
accounts Notifications around teams and users. 2015-10-25 23:19:22 -04:00
blogs Lots of stuff around user.profile.has_pro, and further work on Teams. 2015-10-18 21:07:01 -04:00
media Notifications around teams and users. 2015-10-25 23:19:22 -04:00
pillar Fix some Salt stuff and omit_code option in API. 2014-11-20 19:47:42 -05:00
salt Upgrade gunicorn run. 2015-07-24 19:16:10 -04:00
snipts Team billing info and ability to cancel subscription. 2015-10-25 22:36:19 -04:00
static Remove accidental static commits 2015-10-17 15:00:02 -04:00
teams Notifications around teams and users. 2015-10-25 23:19:22 -04:00
templates Don't show member link for non-members. 2015-10-26 10:15:39 -04:00
user-admin User admin needs to be in a module, now. 2015-09-24 15:09:02 -04:00
utils Don't render full long snipts on list view. 2015-09-28 13:26:16 -04:00
.ffignore ffignore 2013-02-18 15:52:03 -05:00
.gitignore Makefile 2015-10-12 12:59:15 -04:00
.kick Header for pro-adams theme. 2012-08-20 21:48:37 -04:00
.venv Adding venvs 2011-11-06 10:04:19 -05:00
LICENSE Removing some old Gunicorn stuff and refactors for Django 1.6. 2013-11-06 14:10:04 -05:00
Makefile Compile team JS. 2015-10-25 23:34:50 -04:00
Procfile Upgrade gunicorn run. 2015-07-24 19:16:10 -04:00
README.md More Vagrant stuff. 2014-10-31 20:43:32 -04:00
Vagrantfile More Vagrant stuff. 2014-10-30 16:36:03 -04:00
__init__.py Moving 2012-03-04 15:49:51 -05:00
git-pre-commit Let team members search team snipts. 2015-10-24 20:55:58 -04:00
gunicorn.conf.py More Vagrant stuff. 2014-10-31 16:23:42 -04:00
manage.py Removing some old Gunicorn stuff and refactors for Django 1.6. 2013-11-06 14:10:04 -05:00
monitor.py Moving 2012-03-04 15:49:51 -05:00
requirements.txt More work on Snipt for Teams. 2015-10-17 15:00:02 -04:00
settings.py Remove CSRF from settings, do in local. 2015-10-26 10:18:01 -04:00
settings_local.py-template Recaptcha for teams signup. 2015-09-23 11:47:23 -04:00
urls.py More work on Snipt for Teams. 2015-10-17 15:00:02 -04:00
views.py Notifications around teams and users. 2015-10-25 23:19:22 -04:00
wsgi.py Static templates. 2014-10-20 22:02:04 -04:00

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