From c4bfd6126dc7cb16a27d44e8f786cc88b5f9de28 Mon Sep 17 00:00:00 2001 From: fullsizemalt <106900403+fullsizemalt@users.noreply.github.com> Date: Thu, 8 Jan 2026 02:23:33 -0800 Subject: [PATCH] fix(deploy): Use hex encoding for passwords to avoid URL parsing errors --- deploy.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/deploy.sh b/deploy.sh index 60ded76..7029b8c 100755 --- a/deploy.sh +++ b/deploy.sh @@ -113,8 +113,9 @@ HAS_ENV=$(ssh "$USER@$HOST" "[ -f $ENV_FILE ] && echo 'yes' || echo 'no'") if [ "$HAS_ENV" = "no" ]; then echo -e "${YELLOW}Creating new environment file on remote...${NC}" - DB_PASSWORD=$(openssl rand -base64 32) - JWT_SECRET=$(openssl rand -base64 64) + # Use hex encoding to avoid special characters that break database URLs + DB_PASSWORD=$(openssl rand -hex 24) + JWT_SECRET=$(openssl rand -hex 48) ssh "$USER@$HOST" "cat > $ENV_FILE << EOF # Database