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

Not able to run command line options in sbt shell #50

Open
milindpatel-kt opened this issue Dec 12, 2019 · 0 comments
Open

Not able to run command line options in sbt shell #50

milindpatel-kt opened this issue Dec 12, 2019 · 0 comments

Comments

@milindpatel-kt
Copy link

milindpatel-kt commented Dec 12, 2019

I'm trying to run flywayMigrate on a different database as opposed to the once that I have already configured in my build.sbt

For that, I'm trying to pass cli arguments in sbt shell like so, flyway -url="jdbc:postgresql://someserver:1234/testdb" -driver="org.postgresql.Driver" -username="postgres" -password="abcd" migrate
OR
flyway -configFiles=path/to/myAlternativeConfig.conf migrate

But looks like sbt doesn't take cli arguments dynamically this way: https://flywaydb.org/documentation/commandline/#command-line-arguments

Can someone help me with this?

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

No branches or pull requests

1 participant