Skip to content

Commit 924e6f5

Browse files
committed
fix service name that was hard coded
1 parent d27188a commit 924e6f5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

bin/deploy-with-migrations.sh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ REMOTE_HOST="${DEPLOY_REMOTE_HOST:-104.36.23.197}"
2222
REMOTE_PORT="${DEPLOY_REMOTE_PORT:-2048}"
2323
REMOTE_USER="${DEPLOY_REMOTE_USER:-ubuntu}"
2424
REMOTE_DIR="${DEPLOY_REMOTE_DIR:-www/convert2doc.com/pdf}"
25+
SERVICE_NAME=${SERVICE_NAME:-convert2doc-pdf)"
2526
2627
# Create SSH options
2728
SSH_OPTS="-p $REMOTE_PORT"
@@ -69,9 +70,9 @@ fi
6970
7071
# Restart the service after all operations are complete
7172
echo -e "${YELLOW}Restarting service...${NC}"
72-
ssh $SSH_OPTS $REMOTE_USER@$REMOTE_HOST "sudo systemctl restart convert2doc-pdf.service"
73+
ssh $SSH_OPTS $REMOTE_USER@$REMOTE_HOST "sudo systemctl restart coldfollow-web.service"
7374
7475
echo -e "${GREEN}Service restarted successfully!${NC}"
7576
echo -e "${GREEN}Deployment with migrations completed successfully!${NC}"
7677
77-
exit 0
78+
exit 0

0 commit comments

Comments
 (0)