This page is not created by, affiliated with, or supported by Slack Technologies, Inc.
2020-01-30
Channels
- # admin-announcements (1)
- # announcements (1)
- # babashka (8)
- # bristol-clojurians (1)
- # calva (36)
- # clojure (115)
- # clojure-europe (5)
- # clojure-italy (4)
- # clojure-nl (3)
- # clojure-norway (3)
- # clojure-uk (161)
- # clojuredesign-podcast (3)
- # clojurescript (71)
- # core-async (34)
- # cursive (26)
- # datomic (43)
- # docker (2)
- # emacs (24)
- # figwheel-main (1)
- # fulcro (36)
- # graalvm (7)
- # immutant (2)
- # jackdaw (1)
- # jobs (2)
- # leiningen (8)
- # luminus (5)
- # off-topic (29)
- # onyx (1)
- # other-languages (5)
- # pathom (6)
- # pedestal (3)
- # reagent (11)
- # ring (8)
- # shadow-cljs (42)
- # spacemacs (17)
- # specter (6)
- # tools-deps (80)
- # videos (1)
Hello. I have a luminus app with a postgres db, and I'm using the default database migrations library. This works great on my development machine (where I run the migrations with lein and start the web server via the repl). However, I am deploying this app to a wildfly instance (using lein immutant war
), and I am at a loss as to how to run the migrations in production. I have ssh access to the machine running wildfly, and I can run jboss-cli, but I don't know what command to execute to run the migrations. The documentation at https://luminusweb.com/docs/deployment.html has a suggestion for Heroku to make 'run the migrations' part of app start-up, so I tried that. I can see from the logs that my app did indeed run a 'migrate' step, but it did not find any migrations to run! (I checked that the files under resources/migrations/
are indeed included in my .war file). Any help is appreciated!
another thing I just found out is that migrations creates a schema_migrations table in the database where it keeps track of migrations ran. for all I currently understand, for a migration file to be ran, its name must start with at least 1 digit AND that file name must not have been entered in the schema_migrations file. Hope this helps