Can't find docs for Phoenix deployment

Hi I just deployed my phoenix app to render.
But I don’t know how to run mix ecto.migrate and some seeds for database.
Where is document for this?
please help

I just found

#!/usr/bin/env bash
# Initial setup
mix deps.get --only prod
MIX_ENV=prod mix compile

# Compile assets
npm install --prefix ./assets
npm run deploy --prefix ./assets
mix phx.digest

# Remove the existing release directory and build the release
rm -rf "_build"
MIX_ENV=prod mix release

# Run migrations
_build/prod/rel/render/bin/render eval "Render.Release.migrate"

and it works but how can I one off command like

mix run priv/repo/seeds.exs

hi there - you should be able to visit the “Shell” tab on your web service and run the mix command manually. Otherwise you should also be able to ssh into your instance and run it manually as well

This topic was automatically closed after 13 days. New replies are no longer allowed.