Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于没有用于 lobos 的 leiningen 插件,我应该在哪里运行代码来部署 lobos 迁移?
我认为它必须是lein repl
lein repl
如果您正在制作一个网络应用程序,您可能正在使用 compojure 和 ring。在这种情况下,最好的方法是使用该:init字段,使用 ring 插件。
:init
否则,您当然可以设置自己的 init 方法在应用程序逻辑之前调用。