Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Migratus not working #3

Open
jcpsantiago opened this issue Mar 13, 2022 · 1 comment
Open

Migratus not working #3

jcpsantiago opened this issue Mar 13, 2022 · 1 comment

Comments

@jcpsantiago
Copy link

jcpsantiago commented Mar 13, 2022

Thanks for this buildpack! It worked well until I added migrations into the mix.
I've added an alias for migratus:

  :migrate {:extra-deps {com.github.paulbutcher/clj-migratus {:git/tag "v1.0.0"
                                                              :git/sha "67d0fe5"}}
            :main-opts ["-m" "clj-migratus"]}

just like in the migratus docs. This works locally with the migratus.clj file

{:store :database
 :migration-dir "migrations"
 :db {:connection-uri (System/getenv "JDBC_DATABASE_URL")}}

☝️ that env var is already set in heroku too with the correct value using heroku run echo \$JDBC_DATABASE_URL --app my-app

Deployment fails with an error:
Migratus is downloaded

Downloading: migratus/migratus/1.3.6/migratus-1.3.6.jar from clojars

and then when all libs have been downloaded:

Execution error (FileNotFoundException) at clojure.main/main (main.java:40).

Could not locate clj_migratus__init.class, clj_migratus.clj or clj_migratus.cljc on classpath. Please check that namespaces with dashes use underscores in the Clojure file name.

Full report at:

/tmp/clojure-2520674363878108684.edn

I am positive the migratus.clj file exists in the root dir of the repo.

My BUILD_VARS is :migrate migrate, maybe that's wrong?
Any tips?

@raymcdermott
Copy link
Owner

Sorry - I've only just seen this issue. Did you fix it?

Maybe you could make a reproducible case and I'll work out what went wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants