Fork me on GitHub
#luminus
<
2018-06-12
>
dviramontes01:06:21

👋:skin-tone-4: hi - scaffolded a branch new luminus project using version 2.9.12.52 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

dviramontes01:06:47

wondering if im missing something in project.clj config

yogthos02:06:48

@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

yogthos02:06:44

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

yogthos02:06:17

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

yogthos02:06:38

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