We have a configuration center,
Configure it in the configuration center,
For example, test environment jdbc.url = test url
Production environment jdbc.url = production url
Configure jdbc.url = ${jdbc.url} in the configuration file like this
Then when deploying, replacement will be done based on the deployment node, that is, whether it is deployed to the production environment or the test environment.
We have a configuration center,
Configure it in the configuration center,
For example, test environment jdbc.url = test url
Production environment jdbc.url = production url
Configure jdbc.url = ${jdbc.url} in the configuration file like this
Then when deploying, replacement will be done based on the deployment node, that is, whether it is deployed to the production environment or the test environment.
You can use
salt
to synchronize~It is recommended to use it by default when developing locally
app.dev.conf
类似这样的配置文件。然后保留仓库的配置文件app.conf