KAMAL_HOST env var mop-up
- Ensure tests pass - Switch from -e to --env everywhere - Check KAMAL_HOST env var in integration tests
This commit is contained in:
@@ -17,10 +17,10 @@ class Kamal::Commands::Accessory < Kamal::Commands::Base
|
||||
"--name", service_name,
|
||||
"--detach",
|
||||
"--restart", "unless-stopped",
|
||||
*([ "-e", "KAMAL_HOST=\"#{host}\"" ] if host),
|
||||
*network_args,
|
||||
*config.logging_args,
|
||||
*publish_args,
|
||||
*([ "--env", "KAMAL_HOST=\"#{host}\"" ] if host),
|
||||
*env_args,
|
||||
*volume_args,
|
||||
*label_args,
|
||||
|
||||
@@ -20,9 +20,9 @@ class Kamal::Commands::App < Kamal::Commands::Base
|
||||
"--name", container_name,
|
||||
"--network", "kamal",
|
||||
*([ "--hostname", hostname ] if hostname),
|
||||
"-e", "KAMAL_CONTAINER_NAME=\"#{container_name}\"",
|
||||
"-e", "KAMAL_VERSION=\"#{config.version}\"",
|
||||
"-e", "KAMAL_HOST=\"#{host}\"",
|
||||
"--env", "KAMAL_CONTAINER_NAME=\"#{container_name}\"",
|
||||
"--env", "KAMAL_VERSION=\"#{config.version}\"",
|
||||
"--env", "KAMAL_HOST=\"#{host}\"",
|
||||
*role.env_args(host),
|
||||
*role.logging_args,
|
||||
*config.volume_args,
|
||||
|
||||
Reference in New Issue
Block a user