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:
20
deployment/ansible/show-nginx-volumes.sh
Executable file
20
deployment/ansible/show-nginx-volumes.sh
Executable file
@@ -0,0 +1,20 @@
|
||||
#!/bin/bash
|
||||
# Script to show nginx volumes configuration from docker compose
|
||||
|
||||
set -e
|
||||
|
||||
cd "$(dirname "$0")"
|
||||
|
||||
echo "Fetching nginx volumes configuration..."
|
||||
echo ""
|
||||
|
||||
# Solution 1: Use sed to extract the full nginx block, then grep for volumes
|
||||
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 "⚠️ Alternative method: Using larger grep context..."
|
||||
timeout 90 ansible production -i inventory/production.yml -m shell -a \
|
||||
"cd ~/deployment/stacks/application && docker compose config 2>&1 | grep -A 50 'nginx:' | grep -A 10 'volumes:'" \
|
||||
2>&1
|
||||
}
|
||||
Reference in New Issue
Block a user