Snipt: Glitch Edition
 
 
 
 
 
 
Go to file
Nick Sergeant b08ca9a803 Readme and email. 2016-11-29 23:06:48 -05:00
.docker Update nginx conf. 2014-10-06 11:11:20 -04:00
accounts Moar Heroku stuff. 2016-11-29 23:06:48 -05:00
blogs Upgrade to Django 1.10. 2016-11-01 12:59:35 -04:00
media Moar Heroku stuff. 2016-11-29 23:06:48 -05:00
snipts Readme and email. 2016-11-29 23:06:48 -05:00
static Add static. 2014-10-20 22:29:03 -04:00
teams Readme and email. 2016-11-29 23:06:48 -05:00
templates Moar Heroku stuff. 2016-11-29 23:06:48 -05:00
user-admin User admin needs to be in a module, now. 2015-09-24 15:09:02 -04:00
utils Remove intercom and raven. 2016-11-29 23:05:00 -05: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 Assets sep. 2016-11-29 23:06:48 -05:00
Procfile Prepping for Heroku. 2016-11-29 23:05:00 -05:00
README.md Readme and email. 2016-11-29 23:06:48 -05:00
__init__.py Moving 2012-03-04 15:49:51 -05:00
forms.py Allow inactive users to login. 2016-05-11 11:10:19 -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 Remove intercom and raven. 2016-11-29 23:05:00 -05:00
settings.py Readme and email. 2016-11-29 23:06:48 -05:00
settings_local.py-template Remove intercom and raven. 2016-11-29 23:05:00 -05:00
urls.py Moar Heroku stuff. 2016-11-29 23:06:48 -05:00
views.py Upgrade to Django 1.10. 2016-11-01 12:59:35 -04:00
wsgi.py Need settings. 2016-11-29 23:05:00 -05: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

  • Clone the repo.
  • heroku create
  • heroku addons:add heroku-postgresql:hobby-dev
  • heroku addons:add searchbox
  • heroku addons:create postmark:10k
  • heroku addons:open postmark -> use an email you control
  • heroku config:add POSTMARK_EMAIL=<email_from_above>
  • heroku config:add DEBUG=False
  • heroku config:add SECRET_KEY=
  • git push heroku
  • heroku run python manage.py migrate
  • heroku run python manage.py createsuperuser
  • Visit yourapp.herokuapp.com and login with the user you just created.

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