Add Phoenix Framework install option. (#676)

This commit is contained in:
Johannes Erhardt 2025-08-22 19:09:50 +03:00 committed by GitHub
parent 6366dc1118
commit 74096d5f6c
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -1,7 +1,7 @@
#!/bin/bash #!/bin/bash
if [[ -z "$1" ]]; then if [[ -z "$1" ]]; then
echo "Usage: omarchy-install-dev-env <ruby|node|bun|go|laravel|symfony|php|python|elixir|rust|java|ocaml|dotnet>" >&2 echo "Usage: omarchy-install-dev-env <ruby|node|bun|go|laravel|symfony|php|python|elixir|phoenix|rust|java|ocaml|dotnet>" >&2
exit 1 exit 1
fi fi
@ -85,6 +85,19 @@ elixir)
mise use --global elixir@latest mise use --global elixir@latest
mise x elixir -- mix local.hex --force 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) rust)
echo -e "Installing Rust...\n" echo -e "Installing Rust...\n"
bash -c "$(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs)" -- -y bash -c "$(curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs)" -- -y