Refactor some lines
This commit is contained in:
parent
88b5743bb7
commit
e0679b4582
1 changed files with 112 additions and 113 deletions
|
|
@ -80,12 +80,11 @@ pipeline:
|
|||
- echo "Verifying deployment..."
|
||||
# Verify the container is running
|
||||
- docker ps | grep frontend || { echo "Container failed to start"; exit 1; }
|
||||
# Display container logs
|
||||
# Display container logs and test nginx configuration
|
||||
- docker logs frontend
|
||||
# Test Nginx configuration
|
||||
- docker exec frontend nginx -t
|
||||
# Check Nginx process
|
||||
- docker exec frontend ps aux | grep nginx
|
||||
|
||||
# Check contents of /usr/share/nginx/html in the container
|
||||
- docker exec frontend ls -la /usr/share/nginx/html
|
||||
# Perform a simple HTTP request to check if the server is responding
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue