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 b08ca9a803 Readme and email. 6 years ago
.docker Update nginx conf. 8 years ago
accounts Moar Heroku stuff. 6 years ago
blogs Upgrade to Django 1.10. 6 years ago
media Moar Heroku stuff. 6 years ago
snipts Readme and email. 6 years ago
static Remove accidental static commits 7 years ago
teams Readme and email. 6 years ago
templates Moar Heroku stuff. 6 years ago
user-admin User admin needs to be in a module, now. 7 years ago
utils Remove intercom and raven. 6 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 Assets sep. 6 years ago
Procfile Prepping for Heroku. 6 years ago
README.md Readme and email. 6 years ago
__init__.py Moving 10 years ago
forms.py Allow inactive users to login. 6 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 Remove intercom and raven. 6 years ago
settings.py Readme and email. 6 years ago
settings_local.py-template Remove intercom and raven. 6 years ago
urls.py Moar Heroku stuff. 6 years ago
views.py Upgrade to Django 1.10. 6 years ago
wsgi.py Need settings. 6 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

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