Share production environment folder

Hi,

I wonder if I could share de PROD folder with more than one application in the production server.

The folders structure:

-PROD
-IMG
-TEACHERS APPLICATION
-STUDENTS APPLICATION
-ADMINISTRATION APPLICATION

I want this 3 apps sharing the PROD and IMG folders. In this way I will save disk space, only one update when necessary and stock the images in one folder for all the applications.

In try the advanced mode deployment the PROD is inside each application and on execute but this point to his own prod environment.

Deploying two ZIP for APPs and Common files i got this errors:

Warning: include_once(/www/sites/portal/wwwroot/prod/lib/php/nm_ini_perfil.php): failed to open stream: No such file or directory in /www/sites/portal/wwwroot/nomina/menu/index.php on line 42

Warning: include_once(): Failed opening ‘/www/sites/portal/wwwroot/prod/lib/php/nm_ini_perfil.php’ for inclusion (include_path=’.:’) in /www/sites/portal/wwwroot/nomina/menu/index.php on line 42

Fatal error: Call to undefined function perfil_lib() in /www/sites/portal/wwwroot/nomina/menu/index.php on line 481

thank you in advance.

You can, if you deploy in advanced mode.

I did the deployment in advanced mode. Do you know how SC links the prod environment with the app? regards.

When you are deploying, and you are about to click the planet icon, instead, click the Next button below. When you originally set up the advanced deployment settings you probably took teh default paths. I think you asking how to change those paths so your deployed projects all share those libraries, etc?

One warning about that - if you do switch from say SC8.1 to SC9, if you share the prod folder (I assume) you would will have big problems - unless you can update and deploy all your systems at the same time. Trade off between disk space and later operational convenience…

Good luck,
Jamie

Thank you Jamie,

I put the paths as the image attatched.

This is an all new application and Prod and apps have been developed in SC 9

[ATTACH=CONFIG]n77151[/ATTACH]

Captura de pantalla 2017-05-15 a la(s) 10.11.52 a.m..png

hi,
I also tried to publish multiple projects with the same production environment folder, but it gives me the error:

Ambiente di produzione

Ambiente di produzione non trovato. Si prega di contattare l’amministratore di questo ambiente.

{var_str_message_conn}

basically I would like to share the _lib folder between multiple projects that have the same template and the same libraries