fix(deploy): Use hex encoding for passwords to avoid URL parsing errors

This commit is contained in:
fullsizemalt 2026-01-08 02:23:33 -08:00
parent c7d1bfeb99
commit c4bfd6126d

View file

@ -113,8 +113,9 @@ HAS_ENV=$(ssh "$USER@$HOST" "[ -f $ENV_FILE ] && echo 'yes' || echo 'no'")
if [ "$HAS_ENV" = "no" ]; then if [ "$HAS_ENV" = "no" ]; then
echo -e "${YELLOW}Creating new environment file on remote...${NC}" echo -e "${YELLOW}Creating new environment file on remote...${NC}"
DB_PASSWORD=$(openssl rand -base64 32) # Use hex encoding to avoid special characters that break database URLs
JWT_SECRET=$(openssl rand -base64 64) DB_PASSWORD=$(openssl rand -hex 24)
JWT_SECRET=$(openssl rand -hex 48)
ssh "$USER@$HOST" "cat > $ENV_FILE << EOF ssh "$USER@$HOST" "cat > $ENV_FILE << EOF
# Database # Database