Readme and postdeploy.
parent
085c6f4fd8
commit
e279e49f52
13
README.md
13
README.md
|
@ -6,6 +6,19 @@ You can click the button below to automatically deploy Snipt to Heroku.
|
||||||
|
|
||||||
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/nicksergeant/snipt)
|
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy?template=https://github.com/nicksergeant/snipt)
|
||||||
|
|
||||||
|
#### 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](https://devcenter.heroku.com/articles/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`
|
||||||
|
|
||||||
## Manual deploy to Heroku
|
## Manual deploy to Heroku
|
||||||
|
|
||||||
- Clone the repo.
|
- Clone the repo.
|
||||||
|
|
2
app.json
2
app.json
|
@ -10,7 +10,7 @@
|
||||||
"logo": "https://snipt.s3.amazonaws.com/logo.png",
|
"logo": "https://snipt.s3.amazonaws.com/logo.png",
|
||||||
"success_url": "/",
|
"success_url": "/",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postdeploy": "python manage.py migrate && python manage.py createsuperuser"
|
"postdeploy": "python manage.py migrate"
|
||||||
},
|
},
|
||||||
"env": {
|
"env": {
|
||||||
"SECRET_KEY": {
|
"SECRET_KEY": {
|
||||||
|
|
Loading…
Reference in New Issue