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
Document example of managing multiple environments #254
Comments
Possibly:
Then:
The purpose of the above would be that you could manage a single configuration file (automated deployments?) rather than multiple This probably won't ever be a core feature (not any time soon really) but setting this up with some sub-classing in CementApp should be pretty easy for anyone to get going. |
Why not use different files? |
This isn't a feature, so much as an example of how one might do it. I definitely agree that having everything jammed into a single file can be annoying... but it really depends on the use case. My logic is that this same code/example could be used to control multiple target environments (not necessarily production/staging/etc). For example, an app that needs to run against
Etc.... maybe not the best example, but you know. I guess an even better example might be this: At my $dayjob we've got multiple Rackspace accounts for different purposes (not just production/staging)... and it is a pain in the ass to constantly context switch with apps that don't readily support that (a la Chef). In this use case, all of the params are the same, with different values:
Using Chef/Knife as an example, we have to constantly switch accounts using knife-block:
With something like what we're talking about above:
The |
I've got your idea. I've never tried to use day-tool like that, even for that I would use separate configs (but maybe it's because of bad trips with other configurations like that). Anyway, it's nice that this project is moving. |
Common use case in development and deployment is the management of multiple environments, a la
development
,staging
, andproduction
. Might not be a clear way to handle this in Cement directly, but would be feasible to atleast put together an "example" of how one might implement that. For example, with a-E
(environment) command line option that triggers a specific configuration file, or something like that.The text was updated successfully, but these errors were encountered: