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
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!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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