-
1. Re: change JBOSS_BASE_DIR to start different server deployments
jamezp Aug 22, 2014 6:03 PM (in response to redcar)1 of 1 people found this helpfulYou should be able to set the JBOSS_BASE_DIR environment variable. Either in your console session or in the standalone.conf(.bat). Passing -Djboss.server.base.dir=/some/path should also work.
--
James R. Perkins
-
2. Re: change JBOSS_BASE_DIR to start different server deployments
redcar Sep 8, 2014 9:46 AM (in response to jamezp)Now I have the resolution:
Inside the standalone.bat set this for example:
rem Set the standalone base dir
if "x%JBOSS_BASE_DIR%" == "x" (
set "JBOSS_BASE_DIR=%JBOSS_HOME%\standalone_700"
)
and:
rem Set the standalone log dir
rem set "JBOSS_LOG_DIR=%JBOSS_BASE_DIR%\log"
if "x%JBOSS_LOG_DIR%" == "x" (
set "JBOSS_LOG_DIR=%COMPANY_HOME%\Log_WildFly"
)
and
org.jboss.as.standalone ^ "-Djboss.home.dir=%JBOSS_HOME%" ^ "-Djboss.server.log.dir=%COMPANY_HOME%\Log_WildFly" ^
"-Djboss.server.base.dir=%JBOSS_HOME%\standalone_700" ^
"-Djboss.socket.binding.port-offset=700" ^
%SERVER_OPTS% So I have set another standalone home directory, a special log directory and another port.
With these setting it seems to be fine.
Only the -D parameters are not working.
-
3. Re: change JBOSS_BASE_DIR to start different server deployments
rieraernesto Jan 8, 2020 3:47 PM (in response to jamezp)Works for me, and is much more clean solution than edit sh/bat directly. Thanks