How can we help you today? How can we help you today?

Running Git Bash with Flyway Enterprise

I'm working on Windows, where I like using Git Bash for CLI work better than the cmd terminal. It's more flexible about paths and quotes, plus the colorful input lines help to separate the commands from the output. And it shows you which branch you're on! But the terminal icon from Flyway Desktop opens cmd. 

I know when opening the terminal from Flyway Desktop, it has the environment variable set that lets you use the Enterprise version of the engine. Whereas launching Git Bash from a right-click in the project folder won't have the variable set and will pick up Flyway Community Edition.

Is there any good way to unite the two?

emmar00
1

Comments

1 comment

  • emmar00

    Just running flyway auth or rather flyway auth -IAgreeToTheEula didn't work as they complained about me being offline.

    ---

    I was able to get it working with an offline permit as described on the Licensing page. I originally misunderstood what I needed to run and was trying to do flyway auth -offlinePermitPath=wherever , which would still say I was offline. Rather, the file just needs to be present somewhere and then you can proceed to invoke the other Flyway verbs. For example, flyway version -offlinePermitPath=wherever returns Enterprise as desired. Or if you set up the environment variable FLYWAY_OFFLINE_PERMIT_PATH as described on the offline permit path page, then you don't have to pass the argument either.

    ---

    Another, somewhat less convenient, approach I found was that running "C:\Program Files\Git\git-bash.exe" in the terminal launched by Flyway will open a new Git Bash terminal in the current working directory with the REDGATE_LICENSING_PERMIT variable still set, which sets it up with Enterprise from the get-go.

    emmar00
    1

Add comment

Please sign in to leave a comment.