Snipt: Glitch Edition
 
 
 
 
 
 
Go to file
Nick Sergeant 9b4b75a7f1 Add CORS. 2016-12-07 11:02:23 -05:00
accounts Cleanup auth stuff. 2016-11-29 23:07:36 -05:00
blogs Remove Disqus on non-blog posts. 2016-11-29 23:06:48 -05:00
media Assets. 2016-11-29 23:07:36 -05:00
snipts Typo 2016-11-29 23:56:14 -05:00
static Add static. 2014-10-20 22:29:03 -04:00
teams Don't send emails on new team signup. 2016-11-29 23:07:36 -05:00
templates Docs to API and blogging. 2016-11-29 23:07:36 -05:00
user-admin User admin needs to be in a module, now. 2015-09-24 15:09:02 -04:00
utils Remove requirement on Postmark for basic installs. 2016-11-29 23:07:36 -05:00
.gitignore Makefile 2015-10-12 12:59:15 -04:00
.venv Adding venvs 2011-11-06 10:04:19 -05:00
LICENSE Update LICENSE 2016-11-29 23:07:36 -05:00
Makefile Makefile 2016-11-29 23:56:50 -05:00
Procfile Prepping for Heroku. 2016-11-29 23:05:00 -05:00
README.md Readme. 2016-11-30 00:10:35 -05:00
__init__.py Moving 2012-03-04 15:49:51 -05:00
app.json Readme and postdeploy. 2016-11-29 23:23:02 -05:00
manage.py Removing some old Gunicorn stuff and refactors for Django 1.6. 2013-11-06 14:10:04 -05:00
requirements.txt Add CORS. 2016-12-07 11:02:23 -05:00
settings.py Add CORS. 2016-12-07 11:02:23 -05:00
settings_local.py-template SSL stuff. 2016-11-29 23:06:48 -05:00
urls.py Cleanup auth stuff. 2016-11-29 23:07:36 -05:00
views.py Cleanup homepage for private. 2016-11-29 23:07:36 -05:00
wsgi.py Need settings. 2016-11-29 23:05:00 -05:00

README.md

Snipt

Automatic deploy to Heroku

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

Deploy

Importing your snipts from Snipt.net

If you would like to import your snipts from Snipt.net before the service closes on December 31st, 2016, follow these steps:

  1. Deploy your own instance of Snipt using the "Deploy to Heroku" button above.
  2. Download the Heroku CLI and set it up.
  3. git clone https://github.com/nicksergeant/snipt
  4. cd snipt
  5. heroku git:remote -a <your-heroku-app-name>
  6. heroku run python manage.py createsuperuser
  7. Get your Snipt.net API key.
  8. heroku run python manage.py import_snipts <snipt.net-api-key> <snipt.net-username> <your-instance-superuser-username>

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