Fork me on GitHub
#duct
<
2018-05-07
>
myguidingstar05:05:16

how do I refresh only cljs part of a duct project?

iarenaza18:05:41

Are ragtime migrations supposed to be perfomed when running the uberjar? I see the are run in dev environment (executing (dev) & (go) in the REPL), but not when I create the uberjar and run the standalone version of it.

dadair18:05:24

Migrations are not run automatically (i.e., they do not derive from :duct/daemon) in “production” (anything outside of the REPL dev workflow)

dadair18:05:40

You need to specifically call java -jar <jar file> :duct/migrator as a pre-step

iarenaza21:05:53

@dadair I had a suspicion that they didn't, but as it's not documented anywhere I wanted to confirm it. Thanks a lot!

👍 4
weavejester22:05:14

@iarenaza The reasoning behind it is that web servers are frequently load balanced, and migrations can contain instructions that databases don’t like running concurrently.

weavejester22:05:30

It needs to be better documented, however.

weavejester22:05:08

By default, the uberjar will only run keys that inherit from :duct/daemon.