How to share production environment between project on Linux

Hi I have three app running on one Linux server

/home/server/public_html/app1
/home/server/public_html/app2
/home/server/public_html/app3

I create an empty app (only one blank)
/home/server/public_html/prod

I upload the production environment only in the empty app (prod)

My Applications directory is setup, connections are setup and the Incompatible applications page shows that everything is OK

But when I try to run app1, 2 or 3 it complains that it cannot find the production environment.

I try to set the Common libraries folder to the following without any success
/home/server/public_html/prod/_lib/prod
home/server/public_html/prod/_lib/prod
/public_html/prod/_lib/prod
and
/prod/_lib/prod

What I my doing wrong

Regards

You should use Advanced deployment and point all three projects to the same prod folders paths. All the information needed to do so should be available in here:

Hi,

This is what I am doing but none of those 4 syntax works.

/home/server/public_html/prod/_lib/prod
home/server/public_html/prod/_lib/prod
/public_html/prod/_lib/prod
/prod/_lib/prod

I don’t think you should point to _lib/prod/. I am not sure, though, I didn’t test. But the example on the link I posted above points to the prod folder that contains _lib. So, per your example, your path should be to this folder: /home/server/public_html/prod/.

No, same result
                                      

The link also shows the first three paths are relative to the server root, So, maybe the path should start from there, in your case, it might be just /prod/, since public_html is not accessible through the server root path.

I am trying to use the new Production Environment feature (i thing it’s from 9.9.015) where you can have only one prod on the server and share it between many project.

In my case I only upload the Production Environment in /home/server/public_html/prod

There are no _lib/prod directory on the one I am currently testing, so that’s why I have to point outside the root path to get to /home/server/public_html/prod

The only way I don’t have the missing Production Environment message is when I use

/…/prod/_lib/prod

In that case I am getting a blank screen

If you have tried just /prod/ and it didn’t work, maybe it would be better to contact support and have somebody check if there is any specificity in your environment that requires attention.