This script automates the setup process for an Ubuntu server to run a Phoenix web application. It installs Erlang, Elixir, PostgreSQL, and optionally Node.js and npm. The script also sets up the PostgreSQL user for your Phoenix app.
-
Clone the repository:
git clone https://github.com/royokello/phoenix-server-setup.git cd phoenix-server-setup
-
Make the script executable:
chmod +x phoenix-server-setup.sh
-
Run the script:
./phoenix-server-setup.sh
-
Follow the prompts to set the PostgreSQL user password.
-
Verify the installed versions and configurations.
- This script sets a predefined password for the PostgreSQL user
postgres
for simplicity. Ensure that the password is strong and secure.
- Node.js and npm are optionally installed for managing assets in Phoenix apps.
This script is provided under the MIT License.