Closed ajsharp closed 2 years ago
As it turns out, flyctl
requires manual user input to override the app in the default config file, so the easier solution here is to create a separate config file for the staging environment and pass that as a flag to the args
property.
FLY_APP
should be working in the latest release of flyctl
. Using separate configs is also a good option!
Currently trying to conditionally set the
FLY_APP
environment variable in non-production branches to deploy to a staging environment, but it doesn't look like it's getting picked up: