Skip to content

How to ensure migrations to be run on a single web host #526

Discussion options

You must be logged in to vote

I confirm that passing --version=$KAMAL_VERSION works while VERSION=$KAMAL_VERSION didn't work. Below is what I have in .kamal/pre-deploy.

#!/bin/bash
./bin/kamal app exec --primary --version=$KAMAL_VERSION --destination=$KAMAL_DESTINATION "./bin/rails db:prepare"

Replies: 4 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
5 replies
@dn
Comment options

@djmb
Comment options

djmb Jan 14, 2025
Collaborator

@emmceemoore
Comment options

@igor-alexandrov
Comment options

Answer selected by igor-alexandrov
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
7 participants