How to run Ecto migration in production?


I have a small app in production on and I would like to do Ecto migration. How do I do that? Can I run it while app is live? Can you give me some guidance on how to approach this?

Hi, you might have a look at Deploying with Releases — Phoenix v1.7.2

You can SSH to your running instance with fly ssh console.


The Phoenix Files are always a good read: How to migrate Mix Release projects · Fly

1 Like

I was going through their docs and couldn’t find anything but I missed their articles, thanks for that.

1 Like