Inherited apps need other deploy steps than master
We need to setup DATABASE_URL before deploying and populate the database after. Also there is no need for the heroku ruby buildpack twice...
This commit is contained in:
parent
799bb6979e
commit
36b397796d
1 changed files with 2 additions and 7 deletions
9
app.json
9
app.json
|
|
@ -5,9 +5,7 @@
|
||||||
"CLOUDINARY_URL": {
|
"CLOUDINARY_URL": {
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
"DEPLOY_TASKS": {
|
"DEPLOY_TASKS": "db:cleardb_env",
|
||||||
"required": true
|
|
||||||
},
|
|
||||||
"LANG": {
|
"LANG": {
|
||||||
"required": true
|
"required": true
|
||||||
},
|
},
|
||||||
|
|
@ -55,7 +53,7 @@
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"postdeploy": "bundle exec rake db:cleardb_env"
|
"postdeploy": "bundle exec rake db:reset data:demo"
|
||||||
},
|
},
|
||||||
"formation": {
|
"formation": {
|
||||||
"web": {
|
"web": {
|
||||||
|
|
@ -73,9 +71,6 @@
|
||||||
{
|
{
|
||||||
"url": "heroku/ruby"
|
"url": "heroku/ruby"
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"url": "https://github.com/heroku/heroku-buildpack-ruby"
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"url": "https://github.com/gunpowderlabs/buildpack-ruby-rake-deploy-tasks"
|
"url": "https://github.com/gunpowderlabs/buildpack-ruby-rake-deploy-tasks"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue