Replies: 1 comment
-
Hey @elassadi, It's usually via an entrypoint script, here's the default new Rails app setup that runs migrations: At the very end of your Dockerfile
bin/docker-entrypoint
More details: https://www.fromthekeyboard.com/how-kamal-runs-your-migrations/ |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I’m using Kamal to deploy my Rails application, and I need to run a rake task after each deployment. While I have configured the post-deploy hook, I’ve realized that it runs on the target machine but not within the specific application Docker instances.
I need help figuring out how to ensure the rake task runs inside the Docker container, specifically within the web role.
Any advice on how to target only the web role Docker containers inside the post-deploy hook would be greatly appreciated!
Thanks in advance!
Beta Was this translation helpful? Give feedback.
All reactions