You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While working on #43 / #36 the postdeploy in the heroku app.json allows for a single script. Depending on the state of the app when the web flow is initiated, there might also be migrations existing (say for someone deploying a sample app).
In this case having a super command, lets call it db:bootstrap, that would call both db:prepare and db:migrate inside maybe a async.series would be very helpful. Right now db commands have process.exit(0) in them.
This issue proposes we add an optional callback param to the db functions that would if excited would be called instead of process.exit(0) so that the next call in the series would fire. This also means we will need to arg and flags to all methods for consistency.
Needs more thought, but its the shell of the idea
The text was updated successfully, but these errors were encountered:
@keithwhor implemented in a branch in my fork (no pr created yet). Right now it just adds the callback support to prepare and migrate and adds a bootstrap command to run both of them.
While working on #43 / #36 the postdeploy in the heroku app.json allows for a single script. Depending on the state of the app when the web flow is initiated, there might also be migrations existing (say for someone deploying a sample app).
In this case having a super command, lets call it db:bootstrap, that would call both db:prepare and db:migrate inside maybe a async.series would be very helpful. Right now db commands have
process.exit(0)
in them.This issue proposes we add an optional callback param to the db functions that would if excited would be called instead of
process.exit(0)
so that the next call in the series would fire. This also means we will need to arg and flags to all methods for consistency.Needs more thought, but its the shell of the idea
The text was updated successfully, but these errors were encountered: