How to run a Phoenix app in production?

I’m trying to put a Phoenix 1.4 (Elixir 1.7) app into production. In development, the Javascript and CSS work. I can’t seem to find out how to make it work when MIX_ENV=prod. It must be something like ‘precompile assets’ like in Rails, but I can’t find it anywhere. Any help would be very welcome.

IIRC it is…

mix phx.digest

https://hexdocs.pm/phoenix/Mix.Tasks.Phx.Digest.html

1 Like

Thank you!