chore: Update deployment configuration and documentation
- Update Gitea configuration (remove DEFAULT_ACTIONS_URL) - Fix deployment documentation - Update Ansible playbooks - Clean up deprecated files - Add new deployment scripts and templates
This commit is contained in:
17
deployment/ansible/test-nginx-volumes.sh
Executable file
17
deployment/ansible/test-nginx-volumes.sh
Executable file
@@ -0,0 +1,17 @@
|
||||
#!/bin/bash
|
||||
# Test script to check nginx volumes configuration with timeout
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo "Testing nginx volumes configuration..."
|
||||
echo "Timeout: 90 seconds"
|
||||
echo ""
|
||||
|
||||
timeout 90 ansible production -i inventory/production.yml -m shell -a "cd ~/deployment/stacks/application && docker compose config 2>&1 | sed -n '/^ nginx:/,/^ [a-z]/p' | grep -A 10 'volumes:'" 2>&1 || {
|
||||
echo ""
|
||||
echo "⚠️ Command timed out or failed!"
|
||||
echo "Checking if docker compose is working..."
|
||||
timeout 30 ansible production -i inventory/production.yml -m shell -a "cd ~/deployment/stacks/application && docker compose config 2>&1 | head -5" || true
|
||||
}
|
||||
Reference in New Issue
Block a user