-
Notifications
You must be signed in to change notification settings - Fork 1.5k
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
sbt: Allow specifying URL through system properties #694
Comments
@cdedie Can you have a look into this? |
I take a look.
|
Thanks for reporting. For current release the following workaround might work:
|
fix for #694 Allow specifying URL through system properties
Thanks @cdedie for this fix! Merged. |
Thank you @cdedie and @axelfontaine for the fix. I'll be able to properly test it after play-flyway is updated with a new flyway-core release. As it was pointed out in the pull request, this StackOverflow question will also have to be updated with a new answer after the next version is released. |
As it is documented, the sbt plugin allows specifying some configuration settings through system properties instead of directly in
build.sbt
. For example:It would be useful to have official support and documentation for setting
flywayUrl
through aflyway.url
system property. It is common to have different URLs for development, testing and production, and setting them inbuild.sbt
is not convenient.Currently, issuing this command:
without specifying flywayUrl in
build.sbt
produces this error:For instance, this shell command should be supported:
Additionally, it would be useful to document which settings are supported through system properties.
The text was updated successfully, but these errors were encountered: