Fork me on GitHub
#luminus
<
2018-09-20
>
llsouder02:09:16

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)))

llsouder02:09:06

Add migrate to the end of my Procfile?

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

llsouder03:09:03

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

llsouder03:09:58

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

sis_xiphos06:09:42

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

manandearth15:09:37

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

manandearth16:09:38

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