-
Notifications
You must be signed in to change notification settings - Fork 9
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
Local dev vs Defang (Prod) Configurations #292
Comments
We added support for Compose "profile" and always have |
|
While discussing this in the office today, @lionello pointed out that local vs remote is not the same as development vs production. We want to be able to manage our configuration on all of these different axes. I think multiple compose files are going to be necessary. Some of our samples are starting to use a pattern where the sort of remote production configuration is described in the default @raphaeltm pointed out https://github.com/DefangLabs/defang-mvp/issues/435 which describes introducing a |
See also DefangLabs/defang-docs#57 |
We need to document the best way to run different configurations in development and production. Even things like environment variables etc. Sometimes you want to add a
NODE_ENV=development
in dev andNODE_ENV=production
in prod. We can tell people to do something like:But that's pretty annoying.
I think it would be nice if the defang CLI looked for a
*compose.defang.y*ml
file by default, and if it exists, use it to override values in the main compose file.It's not a full development workflow, but I think it's a decent starting point.
The text was updated successfully, but these errors were encountered: