Using Aliases with Destinations #1116
-
I'm currently giving kamal 2.2 a spin and would like to roll it out with multiple stages (via the destinations feature). The config promotes the feature of aliases, so I created an alias for the rails console: aliases:
console: app exec --interactive --reuse "bin/rails console" Now my question: How do I use an alias in a certain destination? Running |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 1 reply
-
cc @djmb |
Beta Was this translation helpful? Give feedback.
-
Hi @JensRavens, Setting options before that command name doesn't work for any command - I think this is a limit of Thor, rather than Kamal. It does seem to give a different error for aliases though so I'll look into that. However, I can't reproduce the problem with the wrong destination being used when calling |
Beta Was this translation helpful? Give feedback.
Hi @JensRavens,
Setting options before that command name doesn't work for any command - I think this is a limit of Thor, rather than Kamal. It does seem to give a different error for aliases though so I'll look into that.
However, I can't reproduce the problem with the wrong destination being used when calling
kamal console -d staging
- could you post the command output?