Fork me on GitHub
#duct
<
2017-11-02
>
jahson19:11:47

@weavejester Why can migrator.ragtime not run in uberjar? I’m not using module.sql.

weavejester19:11:07

@jahson It should be able to.

jahson19:11:11

In repl everything is ok.

weavejester19:11:36

@jahson How are you running it?

jahson19:11:32

@weavejester I’m just running uberjar like java -jar xxx.jar

weavejester19:11:22

@jahson Are you running the :duct/migrator key?

jahson19:11:18

@weavejester No, nowhere in the code. Should I run it explicitly?

weavejester19:11:39

Yep. In the REPL it runs automatically, but in production it’s usually not a good idea to do that, since you might be running several servers behind a load balancer.

weavejester19:11:50

So java -jar xxx.jar :duct/migrator

jahson19:11:17

Got it, you’re right. Thanks!

jahson20:11:19

@weavejester Yeah, already reading it.

jahson20:11:59

@weavejester Curious about code that stops

(defmethod ig/init-key :duct.migrator/ragtime [_ options]
  (migrate {} options))
from running. Can you please point me to it?

weavejester20:11:19

Should just be in your main namespace

weavejester20:11:29

If no keys are specified, run :duct/daemon keys.