-
Notifications
You must be signed in to change notification settings - Fork 332
Open
Labels
Milestone
Description
I saw #490 but I'm looking for more of a global override. The use case is as follows:
- I set up my site with CI to deploy to production for the
masterbranch and staging for anything else - In production, the site is the root content, but in staging, the site is in a subdirectory (i.e. example.com/ for production and dev.example.com/static/ for staging)
- For each environment, I'd like to at least modify the
site.hostconfig value, but there might be other config values that could be useful to change per-environment that I haven't thought of.
Possible implementations:
- Enable individual config overrides through a command line flag
jbake generate --config "site.host=https://example.com"
- Enable declaring an alternate config file
jbake generate --config-file production.properties
I think the second would probably be the easier of the two to implement, though the first would allow for less copy/paste for shared config between multiple environments.
If this is something you'd be interested in implementing, I'd be happy to contribute the code myself (I just wanted to get the conversation started before I went ahead and did anything)