Go Live!
Last updated
Last updated
Fly seems to be the easiest and cheapest option for phoenix apps, so that's what we'll use for our guide.
If you haven't already, download the . Then you will need to .
Create a new project by running this command:
Follow the steps in the CLI, usually the default setup it best, unless you want to change the name of the project.
At this point, it will try to generate and deploy the app, but may fail. We need to make some changes for the launch to succeed. Run this command and follow the next steps.
Add this code after the install build dependencies command, and above the WORKDIR /app command.
Then add this below the COPY assets assets command:
Then below this line:
Copy the following:
This is to ensure proper line endings. (We have run into deployment problems many times due to this)
Run the command below to successfully deploy your new app.
Change your Canonical url to your host domain eg. "domain.com" in config.ex & root.html.heex.
And you're set!