Hi.
Deploying our apps via Git using Caprover is a great workflow.
One thing I often miss is the option of having target based settings. Most of them have been replaced by ENV variables, but there are still a few remaining - like the config.json file.
Does the config file support setting up values like “debug” or “cron” etc via ENV?
I do remember reading about a user config file as well, but not sure if that is the solution here.
Please help.
One question though… I have the same dockerfile that will get deployed for both dev and prod servers… Is there a way to identify the environment by reading the actual ENV variables in the dockerfile? @Apple
@patrick maybe it sems like it didn’tt due to booleans being parsed as strings(i.e. DEBUG).
Given that process.env only supports strings could you add an explicit casting in the config.js file so when a value is parsed as "true" or "false" from $_ENV it is casted to boolean before merging with the config object?