Answer the question
In order to leave comments, you need to log in
Tomcat 8.5 how to assign different values to the same environment variables for the same project?
Hello
, I have a file on my tomket bin/setenv.sh
and there I wrote down the variables for entering the database. Looks like this:
export DATASOURCE_URL="<URL>"
export DATASOURCE_USER="<USER>"
export DATASOURCE_PASSWORD="<PASSWORD>"
webapps/myapp_prod
which my variables are used. webapps/myapp_dev
and I want my variables to have a different value there, that is, I want to specify other data for the connection to the database (use another database) else if
in setenv.sh
or is it possible to create different setenv.sh
ones for different webapps? How to solve this without changing the application itself?
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question