Start it, call into it
The file takes the release script’s commands: start, eval, and any you add.
If the app migrates a database before it starts, put the order in ampoule.toml at the project root, before you pack; packing stores it in the file. A Phoenix app gets MyApp.Release from mix phx.gen.release.
$ ./my_app-aarch64-darwin start
$ ./my_app-aarch64-darwin eval 'IO.puts(MyApp.version())'
$ PORT=8080 ./my_app-aarch64-darwin serve
serve = ["migrate", "start"]
[commands]
migrate = "MyApp.Release.migrate()"
[start.env]
PHX_SERVER = "true"