Skip to content

Commit

Permalink
fix(one-liner): update SERVER_URL when not using default port (#7026)
Browse files Browse the repository at this point in the history
Small fix that should resolve #6341 by replacing the port of SERVER_URL
in the generated .env file
  • Loading branch information
Freebios authored Sep 14, 2024
1 parent d1871a4 commit 3a3262f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -112,8 +112,10 @@ if command -v nc &> /dev/null; then
read -p "Enter a new port number: " new_port
if [[ $(uname) == "Darwin" ]]; then
sed -i '' "s/$port:$port/$new_port:$port/g" docker-compose.yml
sed -E -i '' "s|^SERVER_URL=http://localhost:[0-9]+|SERVER_URL=http://localhost:$new_port|g" .env
else
sed -i'' "s/$port:$port/$new_port:$port/g" docker-compose.yml
sed -E -i'' "s|^SERVER_URL=http://localhost:[0-9]+|SERVER_URL=http://localhost:$new_port|g" .env
fi
port=$new_port
done
Expand Down

0 comments on commit 3a3262f

Please sign in to comment.