luminus

llsouder 2018-09-20T02:25:16.000200Z

Ok, that explains this code in the main:

(defn -main [& args]
  (cond
    (some #{"migrate" "rollback"} args)
    (do
      (mount/start #'toyappt.config/env)
      (migrations/migrate args (select-keys env [:database-url]))
      (System/exit 0))
    :else
    (start-app args)))

llsouder 2018-09-20T02:28:06.000100Z

Add migrate to the end of my Procfile?

web: java $JVM_OPTS -cp target/uberjar/toyapp.jar clojure.main -m toyapp.core migrate

llsouder 2018-09-20T03:09:03.000100Z

AH! Heroku is a read only file system, so you cannot use sqlite or in my case H2.

llsouder 2018-09-20T03:09:58.000100Z

but hey, I learned a lot! Switching over to postgres!

sis_xiphos 2018-09-20T06:29:42.000100Z

@olleromo Thank you so much for more detailed doc!!

olleromo 2018-09-20T06:30:12.000100Z

😊

manandearth 2018-09-20T15:56:37.000100Z

is there somewhere a run-through for setting up a new luminus project with postgreSQL?

manandearth 2018-09-20T16:05:38.000200Z

oh... I just found a chapter on the matter in the number one luminus book... (should have looked at the index before asking...)