📎 Webclip
How to Deploy a Phoenix App to Gigalixir in 20 Minutes
The page gives a short deployment walkthrough for getting a Phoenix app onto Gigalixir. It covers app creation, production config changes for the endpoint and repository, and the commands needed to set up Gigalixir, create the app and database, and deploy.
Reading notes#
- Generate a new Phoenix project with
mix phx.new, create the database, start the server, and initialize git. - Adjust
config/prod.exsso the endpoint uses the Gigalixir app host and port 443, enablesforce_ssl, and setsssl: truefor the repo. - Install Gigalixir with Homebrew, sign up, log in, create the app, and configure the Elixir, Erlang, and Node buildpacks.
- Create a free production database, push to the Gigalixir remote on
main, and open the deployed app.
