Support for deploy-to-heroku button.

master
Nick Sergeant 2016-11-03 12:21:22 -04:00
parent 567a7b9e8e
commit c258e0b85c
2 changed files with 32 additions and 0 deletions

View File

@ -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`

26
app.json Normal file
View File

@ -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"
]
}