Open rynkowsg opened 5 years ago
It looks like I forgot to explain in the guide that Duct uses the JDBC_DATABASE_URL
or DATABASE_URL
variables by default. In production, it's recommended to use these constants, though you can also grab the database URL from any source you want.
Ok, make sense now. It works with the given variables.
I'm closing this issue now. I can also update the doc if you want.
I'm going to reopen this issue to remind me to add an explanation of the database variables. If you want to also submit a PR to add that information yourself, please feel free.
I'm following the GUIDE.rst. I'm at the migrations section at the moment. Migrations seems to work flawlessly from REPL but I noticed that the command from Running Database Migrations in Production doesn't work.
I got error:
I understand the problem, though, I'm not sure how should I specify data source or jdbc url from the command line.
I noticed that in the error log the
:duct.database.sql/hikaricp
keyword is missing. Once I added:to the
config.edn
the commandlein run :duct/migrator
works fine.If this is the right solution for this issue, I can add a minor comment that the command requires definition of
:duct.database.sql/hikaricp
. If not, am I missing something?