Reputation:
I thought liquibase is looking for that file in the liquibases' folder I placed in my linux' /opt folder.
That folder (/opt/liquibase) is in profile.d already so I can call liquibase anywhere.
And yet, when I type "liquibase update", it gives the following output on the terminal:
Starting Liquibase at Sun, 15 Sep 2019 23:00:43 CEST (version 3.8.0 built at 2019-08-15T20:38:06Z)
Liquibase Community 3.8.0 by Datical
Errors:
The option --url is required.
The option --changeLogFile is required.
It makes me wonder why url and changeLogFile are missing, because in /opt/liquibase/liquibase.properties, I got the following lines:
driver: com.mysql.jdbc.Driver
url: jdbc:mysql://localhost:3306/luquibase?autoReconnect=true&useSSL=false
username: zend
password: zend
changeLogFile: ~/html/zend/sql/changelog.xml
What do I do wrong here?
Upvotes: 1
Views: 4302
Reputation: 9016
This is as-designed behavior. It is expected that people using liquibase will use it on multiple projects, so it looks for the liquibase.properties
file in the current directory, which may not be the directory where the liquibase shell script lives.
Upvotes: 2