Page 1 of 1

Are both env.ini files used ?

Posted: Thu Dec 27, 2018 7:21 am
by springhigh
PM 3.3 has two env.ini files
Just wondering which is the best to use, which takes precedent, or if we even need both?
The first one is where PM applies changes made in the admin - System

1. processmaker/workflow/engine/config/env.ini
2. processmaker/shared/sites/[SITE]/env.ini

[edit] based on PM only having one workspace

thanks

Re: Are both env.ini files used ?

Posted: Thu Jan 03, 2019 12:55 am
by amosbatto
I had to read the source code to figure out what Processmaker is now doing. First, ProcessMaker reads the processmaker/workflow/engine/config/env.ini file, then it reads the processmaker/shared/sites/[SITE]/env.ini file.

You can put settings in either file, but a setting in the processmaker/workflow/engine/config/env.ini file can be overwritten by a setting in the processmaker/shared/sites/[SITE]/env.ini file, so it is generally recommended to use the processmaker/shared/sites/[SITE]/env.ini file.

PS: In case you are interested, the source code that handles this is System::getSystemConfiguration() defined in workflow/engine/src/ProcessMaker/Core/System.php

Re: Are both env.ini files used ?

Posted: Thu Jan 03, 2019 1:28 am
by springhigh
Thank you Amos :)

Re: Are both env.ini files used ?

Posted: Thu Jan 03, 2019 11:00 pm
by amosbatto
I updated the documentation to explain this:
https://wiki.processmaker.com/3.2/Confi ... le_env.ini