- Add initializer count logging in DiscoveryServiceBootstrapper - Add route structure analysis in RouterSetup - Add request parameter logging in HttpRouter - Update PHP production config for better OPcache handling - Fix various config and error handling improvements
22 lines
686 B
Bash
Executable File
22 lines
686 B
Bash
Executable File
#!/bin/bash
|
|
# Restart specific Docker container on production server
|
|
# Usage: ./restart.sh [container_name]
|
|
# Example: ./restart.sh php
|
|
# Without argument: restarts all containers
|
|
|
|
CONTAINER="${1:-all}"
|
|
|
|
echo "🔄 Restarting container(s) on production server..."
|
|
echo ""
|
|
|
|
if [ "$CONTAINER" = "all" ]; then
|
|
echo "Restarting ALL containers..."
|
|
ssh -i ~/.ssh/production deploy@michaelschiemer.de "cd /home/deploy/michaelschiemer/current && docker compose -f docker-compose.yml -f docker-compose.production.yml restart"
|
|
else
|
|
echo "Restarting container: $CONTAINER"
|
|
ssh -i ~/.ssh/production deploy@michaelschiemer.de "docker restart $CONTAINER"
|
|
fi
|
|
|
|
echo ""
|
|
echo "✅ Done!"
|