Skip to content

The open alternative to Salesforce, designed for AI.

fix(one-liner): update SERVER_URL when not using default port (#7026)

Quentin G.3a3262f003e7
diff --git a/install.sh b/install.sh
index 2b7a2d46ee9..39eb096b8e2 100755
--- a/install.sh
+++ b/install.sh
@@ -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