Fork me on GitHub

👋:skin-tone-4: hi - scaffolded a branch new luminus project using version and im not able to get the JAR to run locally. This is the app profiles I used lein new luminus foo +http-kit +sqlite +cljs +re-frame +sassc. Any idea on how to begin debugging this ? it doesnt throw an error just exits right away PORT=3000 java -jar ./target/uberjar/foo


wondering if im missing something in project.clj config


@dviramontes the app exists because it can't find the database, if you look in log/foo.log, it should say something like: 2018-06-11 22:20:34,040 [main] ERROR foo.core - Database configuration not found, :database-url environment variable must be set before running


you can run migrations with:

java -jar -Dconf=dev-config.edn target/uberjar/foo.jar migrate
and then start the app:
java -jar -Dconf=dev-config.edn target/uberjar/foo.jar


as a note, if you run the app in dev mode with lein run, then it will print the error to standard out


you also don't need to add +cljs explicitly, the +re-frame will take care of pulling it in automaticall