-
Notifications
You must be signed in to change notification settings - Fork 457
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Getting an error when using a destination with no corresponding deploy yml file #809
Comments
@djmb this seems to be reasonable. If you don't have anything against it, I will take care of this. |
@igor-alexandrov - I'm not sure about this. The problem I see is if someone uses deploy.yml for production deployments and then adds a new destination but forgets the destination yml file, then they'd deploy to the production servers rather than get an error. That said this is a valid use case for a single deploy file and it would be nice to avoid unnecessary duplication, but I think we need to leave this for now. At some point I'm going to look through how config inheritance works between |
@djmb what you've said also makes sense. I am not sure what you mean about the inheritance. For me it is a pretty simple |
@igor-alexandrov - regarding inheritance, there may be some things we don't want to carry across from Right now though I think allowing a single |
I got it, Donal. Thank you for the clarification. |
When using
-d destination
, at the moment you have to have adeploy.destination.yml
file (along with adeploy.yml
file), or you get aERROR (RuntimeError): Configuration file not found
error.Conversely, when using
-d destination
, at the moment you have to have adeploy.yml
file (along with adeploy.destination.yml
file), or you also get aERROR (RuntimeError): Configuration file not found
error.I don't think it should error out. I think only one yml file can be enough, because you can make a
deploy.yml
file that works for all destinations.Like this one:
Because the SERVER_IP comes from an environment variable, like
.env.production
or.env.staging
, I don't have anything to add in adeploy.production.yml
file ordeploy.staging.yml
file. Onedeploy.yml
file is enough, but this won't work in Kamal at the moment.The only way to work around this is to create a dummy
deploy.production.yml
file with a dummy key in it (or{}
as mentioned in #682). If the file is empty, you get aERROR (NoMethodError): undefined method
symbolize_keys' for false` error) error.If this issue makes sense I’d be happy to make a PR to fix this.
The text was updated successfully, but these errors were encountered: