Comments (8)
Possible solutions:
-
add an option for this, don't have a good name, though.
restart_after_run
? or justrestart
? -
add special logic to run so you could say
run: - "rake db:migrate" - restart
-
simply always restart if there are custom commands
from dpl.
Would this work?
run:
- "rake db:migrate"
- "heroku ps:restart"
from dpl.
No, first off, these commands are run on a dyno (like heroku run ...
), second, the heroku toolbelt is not installed.
from dpl.
I think it would be ideal if Heroku could run migrations as part of the deploy instead of after it. Then only one restart would be required and there'd be nothing to do for this integration.
from dpl.
I think it would be ideal if Heroku could run migrations as part of the deploy instead of after it. Then only one restart would be required and there'd be nothing to do for this integration.
Interestingly, Engine Yard does that.
from dpl.
Heroku used to do this, but that behaviour got changed with the Cedar stack and its focus on being a much more generic application stack.
from dpl.
I guess you could make it part of the buildpack, except you don't have the database connection available during slug compilation.
from dpl.
I guess that explains it. Well, for now, option two makes sense to me:
run:
- "rake db:migrate"
- restart
It's pretty obvious when the restart happens.
from dpl.
Related Issues (20)
- error: Found argument 'to' which wasn't expected, or isn't valid in this context HOT 1
- Invalid option "app" HOT 1
- failed to deploy to github pages HOT 1
- pypi deploy failing for python 2 with "SyntaxError: invalid syntax" HOT 2
- ArgumentError when deploying using Heroku API HOT 6
- Failed to install dpl dependencies: get-pip.py failed HOT 3
- Unable to override `url` parameter in the `pages` provider when using `deploy_key`. HOT 1
- AWS Lambda Runtime outdated HOT 2
- AWS Lambda Deployment gives "An update is in progress for resource" error HOT 4
- RuntimeError: An attempt to run a request with a Faraday::Connection without adapter has been made HOT 5
- error installing dpl HOT 4
- Not able to upload multiple files on Elastic beanstalk using Travis CI
- dpl reports deploy failure, Heroku says everything is fine HOT 2
- Error installing dpl-pages HOT 2
- deploy to github pages report no deploy_key
- uninitialized constant Rendezvous::StringIO HOT 2
- DPL seems not compatible with ruby 3.2.0 HOT 2
- info cf spaces No org targeted, use 'cf target -o ORG' to target an org.
- CI to scalingo always pass even when build actually failed
- Error installing dpl HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dpl.