Cant run gigalixir run mix ecto.migrate

Hi Guys, still new to elixir and getting this error when trying to run

gigalixir run mix ecto.migrate

when I open gigalixir logs I get this error msg

[Errno 2] No such file or directory: ‘mix’.

all my migrations are working locally,

Thanks for the help guys

Hi Byron!

Did you deploy your app with a release? If so, you won’t have mix available. Gigalixir docs explain how you can run your migrations in this case:

https://gigalixir.readthedocs.io/en/latest/database.html?highlight=migration#how-to-run-migrations

(haven’t used Gigalixir myself in a long time, but I think that’s how I used to run migrations back then)

2 Likes

Thanks for the reply Trisolaran,

The deployment methods are so new to me, I’m used to Heroku rails, etc. I followed your link and see there is a screencast showing how to deploy with distillery, I assume that is the way it’s meant to be done. I will follow the cast to a t and hopefully, that will work.

Thanks again, really appreciate it.

Hi!

gigalixir ps:migrate should do the migration from your local terminal.

1 Like