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 1217e7ddb8 What the shitting shit. 5 years ago
accounts Cleanup auth stuff. 6 years ago
blogs Remove Disqus on non-blog posts. 6 years ago
media Assets. 6 years ago
snipts Typo 6 years ago
static Add static. 8 years ago
teams Don't send emails on new team signup. 6 years ago
templates Docs to API and blogging. 6 years ago
user-admin User admin needs to be in a module, now. 7 years ago
utils Remove requirement on Postmark for basic installs. 6 years ago
.gitignore Makefile 7 years ago
.venv Adding venvs 11 years ago
LICENSE Update LICENSE 6 years ago
Makefile Makefile 6 years ago
Procfile Prepping for Heroku. 6 years ago
README.md Remove docs on import. 6 years ago
__init__.py Moving 11 years ago
app.json Readme and postdeploy. 6 years ago
manage.py Removing some old Gunicorn stuff and refactors for Django 1.6. 9 years ago
requirements.txt Add CORS. 6 years ago
settings.py What the shitting shit. 5 years ago
settings_local.py-template SSL stuff. 6 years ago
urls.py Cleanup auth stuff. 6 years ago
views.py Cleanup homepage for private. 6 years ago
wsgi.py Need settings. 6 years ago

README.md

Snipt

Automatic deploy to Heroku

You can click the button below to automatically deploy Snipt to Heroku.

Deploy

Manual deploy to Heroku

  • Clone the repo.
  • heroku create
  • heroku addons:add heroku-postgresql:hobby-dev
  • heroku addons:add searchbox
  • heroku config:add SECRET_KEY=<some-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.

Updating your Heroku instance after an automatic deploy

  • git clone https://github.com/nicksergeant/snipt
  • cd snipt
  • git checkout heroku
  • heroku git:remote -a <your-instance-name>
  • git push heroku heroku:master

Options

If you want email support (for password resets, server errors, etc):

  • heroku addons:create postmark:10k
  • heroku run addons:open postmark -> use an email you control and confirm it
  • heroku config:add POSTMARK_EMAIL=<email_from_above>

If you want to disable user-facing signup:

  • heroku config:set DISABLE_SIGNUP=true

If you want to enable Django's DEBUG mode:

  • heroku config:add DEBUG=true

If you want to enable SSL on a custom domain after you've configured your Heroku SSL cert:

  • heroku config:add USE_SSL=true