From 74096d5f6cb3e47811b64829d2a62007d5fc0151 Mon Sep 17 00:00:00 2001 From: Johannes Erhardt Date: Fri, 22 Aug 2025 19:09:50 +0300 Subject: [PATCH] Add Phoenix Framework install option. (#676) --- bin/omarchy-install-dev-env | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) diff --git a/bin/omarchy-install-dev-env b/bin/omarchy-install-dev-env index cd972c79..24015b83 100755 --- a/bin/omarchy-install-dev-env +++ b/bin/omarchy-install-dev-env @@ -1,7 +1,7 @@ #!/bin/bash if [[ -z "$1" ]]; then - echo "Usage: omarchy-install-dev-env " >&2 + echo "Usage: omarchy-install-dev-env " >&2 exit 1 fi @@ -85,6 +85,19 @@ elixir) mise use --global elixir@latest mise x elixir -- mix local.hex --force ;; +phoenix) + echo -e "Installing Phoenix Framework...\n" + # Ensure Erlang/Elixir first + mise use --global erlang@latest + mise use --global elixir@latest + # Hex & Rebar + mise x elixir -- mix local.hex --force + mise x elixir -- mix local.rebar --force + # Phoenix project (phx_new) + mise x elixir -- mix archive.install hex phx_new --force + echo -e "\n Phoenix installed. Create a project with:\n mix phx.new my_app\n" + echo -e "Tip: Inside the project you can run:\n mix deps.get\n mix ecto.create # if using a DB\n mix phx.server\n" + ;; rust) echo -e "Installing Rust...\n" bash -c "$(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs)" -- -y