AnsweredAssumed Answered

javascript serverside to get server name

Question asked by pierat on Oct 22, 2018
Latest reply on Oct 23, 2018 by angelborroy

Hi, for a javascript program, I want to differentiate the way the program works in the production environment and in the test environment.

 

The only difference between the two installation is the server name : prod.mycompany.fr vs test.mycompany.fr.

So, is there a way to get the server name information from a server-side javascript program ?

 

Note : if this is impossible, perhap's there's a way to do that using alfresco-global.properties but once more, how to get a property set in this file from a serverside javascript  program ?

 

Thanks for sharing ideas, Pierre

Outcomes