Closed alan-saar closed 6 years ago
I think this is solved in duct beta. The message is so much better. dev run from the box. Prod gives a nice error message.
$ lein new duct-beta project +api +ataraxy +sqlite +example
$ cd project
$ lein duct setup
$ lein run
Error on key :duct.database.sql/hikaricp when building system (...)
Caused by: java.lang.IllegalArgumentException: dataSource or dataSourceClassName or jdbcUrl is required.
I believe lein run
requires a DATABASE_URL
environment variable to be set, or for the database URL to be specified in the configuration. In development, there are default values. As I recall, the idea was that it's better to be explicit in production, and permissive in development.
The beta version should be turned into a release soon, once I get a bit of time to finish updating the documentation.
+site +ataraxy +sqlite +example works
when I try with +api the I got the following
steps: