Questions and discussion about developing processes and programming in PHP, JavaScript, web services & REST API.
Forum rules: Please search to see if a question has already asked before creating a new topic. Please don't post the same question in multiple forums.
By pawansaxena
#828727
Hello all,

I am running processmaker 3.4, i can see that there is a env.ini file residing in the workflow/engine/config directory but that have some environment values as APP_ENV and it is set to production.
Also there's a environments.php file in the same directory but with different variables, i am not sure whether that file plays a role anymore or it is just sitting there.

Whenever i see the logs ( even on dev i see the production text in the logs and not dev, as i have not setup the dev env)
Can anyone help me as where and how can i use different env.ini files for different environment and tell processmaker to use respective environment values.
By pawansaxena
#828868
This is a good wiki link. But whenever i want to set some environment variable, i didn't want to go and change the .env.ini file directly. I wanted to extend this functionality to have some .env in project root.

I am able to do so by changing some code in System.php inside /workflow/engine/src/Processmaker/Core/System.php

Inside getSystemConfiguration method add below lines :
Code: Select all
if (!empty($globalIniFile)) {
            $appEnvFile = app()->environmentFile();
            $appEnvFilePath = PATH_TRUNK . $appEnvFile;
            if (file_exists($appEnvFilePath)) {
                if (($appEnvConfig = @parse_ini_file($appEnvFilePath)) !== false) {
                    $config = array_merge($config, $appEnvConfig);
                }
            }
        }

        if (!empty($wsIniFile)) {
            $appEnvFile = app()->environmentFile();
            $appEnvFilePath = PATH_DB . $wsName . PATH_SEP . $appEnvFile;
            if (file_exists($appEnvFilePath)) {
                if (($appEnvConfig = @parse_ini_file($appEnvFilePath)) !== false) {
                    $config = array_merge($config, $appEnvConfig);
                }
            }
        }
Hope it helps someone.

Cheers !!!
By ljglmail
#829717
When I start my processmaker server in production mode, I can see that the application directory is using folder structure as follows: www.omegle.fyi
www.chatrandom.one
www.bazoocam.fyi
I am looking for the environment variable APP_ENV, but the documentation does not specify the value for APP_ENV.

Appreciate if you could help me out with reference guide or pointers on how to set environment variables for processmaker 3.4.
By MichaelFinn
#830468
It is tough to build an environment. Those who know how to read code can easily get to know about the solution to this problem. If you are unable to deal with programming tasks then drop your request at irelandassignmenthelp.ie we will surely assist you.

A 1xbet clone script is a pre-designed software so[…]

4rabet clone script is enabling entrepreneurs to e[…]

Parimatch clone script is enabling entrepreneurs t[…]

In the world of cryptocurrency, a wallet is an app[…]