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

Use HOME env var for db file #1

Closed
wants to merge 1 commit into from
Closed

Use HOME env var for db file #1

wants to merge 1 commit into from

Conversation

sleshchenko
Copy link

@sleshchenko sleshchenko commented Jun 27, 2019

For some reasons ~ does not work correctly in Vertx Devfile
Screenshot_20190627_153205

This PR replaces it with ${HOME}

It's needed to eclipse-che/che-devfile-registry#18

@metlos
Copy link

metlos commented Jul 2, 2019

Note that this can be worked around by specifying the jdbc url as an environment variable:

JDBC_URL=jdbc:h2:/tmp/db java -jar target/*fat.jar

This should work in any Spring Boot application where the configuration properties can be read from multiple sources by default..

@sleshchenko
Copy link
Author

@metlos Thanks for sharing info about overriding Spring Boot Application configuration.
Closing this PR since for me it looks like it's even better to specify DB file path during application start instead of relying on the default value.

@sleshchenko sleshchenko deleted the useHomeEnvVar branch July 15, 2019 13:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants