Add staging to configuration

Notice: This thread is very old.
vincentvega
Member | 2
+
0
-

Hi all,

Currently the config.neon file has a ‘production’ and ‘development’ section. Would it be possible to add a third in-between: ‘staging’. So then I can do development on my local machine, push milestones to staging environment and when approved move it up to production environment.

What changes are needed to accomplish this?

Kind regards,
Vincent

Tomas Jancik
Member | 103
+
0
-

just define your ‘staging’ section in config.neon file as usually and then in bootstrap when loading it, use the section name as second parameter

$container = $configurator->loadConfig(__DIR__ . '/config.neon', "staging"); //tady ten druhej parametr
vincentvega
Member | 2
+
0
-

Thank you :)