23 lines
581 B
Bash
Executable File
23 lines
581 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Quick restart without rebuild (for configuration changes)
|
|
|
|
echo "Restarting SkyArtShop services..."
|
|
|
|
sudo systemctl restart skyartshop
|
|
sleep 2
|
|
|
|
if systemctl is-active --quiet skyartshop; then
|
|
echo "✓ Application restarted successfully"
|
|
|
|
# Quick test
|
|
if curl -s -o /dev/null -w "%{http_code}" http://localhost | grep -q "200"; then
|
|
echo "✓ Website is responding"
|
|
else
|
|
echo "⚠ Website may have issues"
|
|
fi
|
|
else
|
|
echo "✗ Application failed to start"
|
|
echo "View logs: sudo journalctl -u skyartshop.service -n 50"
|
|
fi
|