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

How to specify database name? #10

Open
jzpchen opened this issue Apr 12, 2016 · 1 comment
Open

How to specify database name? #10

jzpchen opened this issue Apr 12, 2016 · 1 comment

Comments

@jzpchen
Copy link

jzpchen commented Apr 12, 2016

Thanks for the docker image. It is very useful. I did run into some difficulty in using database name other than the default "postgres" when doing update and generate. I looked at the scripts/liquidbase-setup.sh, I saw the following:

url: jdbc:postgresql://$DB_PORT_5432_TCP_ADDR:$DB_PORT_5432_TCP_PORT/$POSTGRES_USER

When I did "-e POSTGRES_USER=test", then it started to use database "test". Is this intended?

@Pouja
Copy link

Pouja commented Jun 3, 2016

Yes and no. The name of the variable is wrong. After the slash it is not $POSTGRES_USER but the database name. It should be name something like $DB_NAME.

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

2 participants