Snipt: Glitch Edition
 
 
 
 
 
 
Go to file
Nick Sergeant 2c0b9d4972 Readme. 2016-11-29 23:07:36 -05:00
accounts Moar Heroku stuff. 2016-11-29 23:06:48 -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 Remove snipt ad. 2016-11-29 23:07:11 -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 Auth stuff. 2016-11-29 23:06:48 -05:00
.gitignore Makefile 2015-10-12 12:59:15 -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. 2016-11-29 23:07:36 -05:00
__init__.py Moving 2012-03-04 15:49:51 -05:00
app.json Support for deploy-to-heroku button. 2016-11-29 23:07:36 -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
requirements.txt Use certifi. 2016-11-29 23:06:48 -05:00
settings.py Support for HAYSTACK_URL. 2016-11-29 23:07:11 -05:00
settings_local.py-template SSL stuff. 2016-11-29 23:06:48 -05:00
urls.py Some cleanup. 2016-11-29 23:07:11 -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

Deploying to Heroku

Automatic:

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

Deploy

Please note: this method will work fine, but you will not have email support unless you manually configure Postmark. You don't necessarily need this, though. After deploying the instance, visit https://<your-instance-name>/signup, and create a user. You will get a 500 Server Error, which is the site trying to send a welcome email. Ignore the error and go to <https://your-instance-name>/login, and log in with the username and password you provided. Snipt will work fine, but you will not receive any emails if there are server errors.

If you would like to configure your instance to use a free Postmark addon, do the following after deploying (you'll need the Heroku CLI):

  • heroku run -a <your-instance-name> addons:open postmark -> use an email you control and confirm it
  • heroku <your-instance-name> config:add -a <your-instance-name> POSTMARK_EMAIL=<email_from_above>

Manual:

  • 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 and confirm it
  • heroku config:add POSTMARK_EMAIL=<email_from_above>
  • 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.

If you want to disable user-facing signup:

  • heroku config:set DISABLE_SIGNUP=true

If you want to enable Disqus comments:

  • heroku config:set DISQUS_SHORTNAME=whatever

If you want to enable Django's DEBUG mode:

  • heroku config:add DEBUG=False

If you want to enable SSL (after you've configured your Heroku SSL cert):

  • heroku config:add USE_SSL=False