Skip to content

Commit

Permalink
example: install phoenix deps separately
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Jun 19, 2024
1 parent fdcd61e commit a35e90e
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions examples/phoenix/.setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@ mix local.hex --force
mix local.rebar --force
mix archive.install --force hex phx_new

echo y | mix phx.new --install hello
if [ ! -d "hello" ]; then
yes | mix phx.new hello
sed -i -e "s/hostname: \"localhost\"/socket_dir: System.get_env(\"PGHOST\")/" ./hello/config/dev.exs
fi

pushd hello
sed -i -e "s/hostname: \"localhost\"/socket_dir: System.get_env(\"PGHOST\")/" ./config/dev.exs
mix deps.get
popd

0 comments on commit a35e90e

Please sign in to comment.