这是indexloc提供的服务,不要输入任何密码
Skip to content

Run commands on the dokku host during the "release" script #7539

Answered by turicas
msurdi asked this question in Q&A
Discussion options

You must be logged in to vote

The database library I'm using in my application (for an SQLite database) has a bug, which prevents it to run the migrations (which I'm doing in the release Procfile script) if the previous version of the application is still running/connected to the database.

In this case you can't have zero downtime during your deploys, since it would require both the old and the new containers to be running at the same time. You must configure the checks for this app accordingly.
See more details at https://dokku.com/docs/deployment/zero-downtime-deploys/
Note that disabling checks is not the same as skipping them - see more details at #2073

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@msurdi
Comment options

@turicas
Comment options

Answer selected by msurdi
@msurdi
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants