From c258e0b85cd2d34ace0700ace5f71f2ac20ef672 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Thu, 3 Nov 2016 12:21:22 -0400 Subject: [PATCH] Support for deploy-to-heroku button. --- README.md | 6 ++++++ app.json | 26 ++++++++++++++++++++++++++ 2 files changed, 32 insertions(+) create mode 100644 app.json diff --git a/README.md b/README.md index 2ed0ea4..e523ca4 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,12 @@ # Deploying to Heroku +*Automatic:* + +[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/nicksergeant/snipt/tree/heroku) + +*Manual:* + - Clone the repo. - `heroku create` - `heroku addons:add heroku-postgresql:hobby-dev` diff --git a/app.json b/app.json new file mode 100644 index 0000000..178701b --- /dev/null +++ b/app.json @@ -0,0 +1,26 @@ +{ + "name": "Snipt", + "description": "Code snippets for teams and individuals.", + "keywords": [ + "snipt", + "code snippets" + ], + "website": "https://snipt.net", + "repository": "https://github.com/nicksergeant/snipt", + "logo": "https://snipt.s3.amazonaws.com/logo.png", + "success_url": "/", + "scripts": { + "postdeploy": "python manage.py migrate" + }, + "env": { + "SECRET_KEY": { + "description": "Secret key for Django to use.", + "generator": "secret" + } + }, + "addons": [ + "heroku-postgresql:hobby-dev", + "postmark:10k", + "searchbox" + ] +}