Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spring.datasource.url -> lnd-manageJ.conf #28

Open
netcoding opened this issue May 11, 2022 · 2 comments
Open

spring.datasource.url -> lnd-manageJ.conf #28

netcoding opened this issue May 11, 2022 · 2 comments
Labels
enhancement New feature or request good first issue Good for newcomers

Comments

@netcoding
Copy link

netcoding commented May 11, 2022

postgres url is hardcoded as localhost in application/src/main/resources/application.properties

i use the same postgres-db on another host while i still use the lnd-manageJ locally on my laptop for testing.

after every git checkout my application.properties is overwritten again.

i wish that "spring.datasource.url" is configured via "lnd-manageJ.conf".

@netcoding netcoding added the enhancement New feature or request label May 11, 2022
@C-Otto C-Otto added the good first issue Good for newcomers label May 15, 2022
@C-Otto
Copy link
Owner

C-Otto commented May 17, 2022

Maybe this helps as a quick fix?

echo "spring.datasource.url=xxx" >> /tmp/override.properties
java -jar application/build/libs/application-boot.jar --spring.config.location=classpath:application.properties,/tmp/override.properties

@martinatime
Copy link
Contributor

As the application is using the default profile you can also create an application-default.properties and set the values in there. This will override whatever is in application.properties and won't be updated by Git Pulls unless the repo creates an application-default.properties.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

3 participants