Commit cd3ac2cc by yiling.shen

Add diagnostic steps to check Docker containers and project directory before deployment

parent 51c6ada0
Pipeline #3190 failed with stages
in 17 seconds
......@@ -23,6 +23,10 @@ deploy_to_production:
- echo "Testing SSH connection"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "echo 'SSH connection successful'"
- echo "SSH connection test completed"
- echo "Checking current Docker containers"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "docker ps -a"
- echo "Checking project directory"
- ssh -p $SSH_PORT $SSH_USER@$SSH_HOST "ls -la customer-recall/ 2>/dev/null || echo 'Project directory not found'"
- echo "Uploading deployment script"
- scp -P $SSH_PORT deploy_scripts/deploy_with_backup.sh $SSH_USER@$SSH_HOST:/tmp/
- echo "Setting script permissions"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment