Deploying a Phoenix Project to Production

12
clicks
Deploying a Phoenix Project to Production

Source: vishal.rs

Type: Post

This article outlines the process of deploying a small Phoenix application from development to production. It begins with recommendations for using SQLite for simpler applications to avoid complicated database setups. The author describes creating a Linode server with Arch Linux, setting up a personal user account, and installing essential packages including Git, Elixir, SQLite, and Nginx. The deployment steps involve cloning the project, configuring the production environment, and starting the Phoenix server. DNS setup is also covered, where the author explains how to register a domain and update DNS records. Furthermore, the article discusses configuring Nginx as a reverse proxy to manage multiple websites on the server and obtaining SSL certificates using Certbot. The author concludes by testing the domain and starting the server in the background, successfully deploying the application.

© HashMerge 2024