updated backups solution

This commit is contained in:
Quality System Admin
2025-11-03 22:18:56 +02:00
parent 1ade0b5681
commit 9c19379810
17 changed files with 3105 additions and 50 deletions

View File

@@ -27,6 +27,15 @@ echo "=============================================="
PID_FILE="../run/trasabilitate.pid"
# Detect which installation we're running from
if [[ "$PWD" == *"/quality_app/"* ]]; then
LOG_DIR="/srv/quality_app/logs"
PROJECT_NAME="quality_app"
else
LOG_DIR="/srv/quality_recticel/logs"
PROJECT_NAME="quality_recticel"
fi
if [[ ! -f "$PID_FILE" ]]; then
print_error "Application is not running (no PID file found)"
echo "To start the application, run: ./start_production.sh"
@@ -44,19 +53,20 @@ if ps -p "$PID" > /dev/null 2>&1; then
done
echo ""
echo "🌐 Server Information:"
echo " • Project: $PROJECT_NAME"
echo " • Listening on: 0.0.0.0:8781"
echo " • Local URL: http://127.0.0.1:8781"
echo " • Network URL: http://$(hostname -I | awk '{print $1}'):8781"
echo ""
echo "📁 Log Files:"
echo " • Access Log: /srv/quality_recticel/logs/access.log"
echo " • Error Log: /srv/quality_recticel/logs/error.log"
echo " • Access Log: $LOG_DIR/access.log"
echo " • Error Log: $LOG_DIR/error.log"
echo ""
echo "🔧 Quick Commands:"
echo " • Stop server: ./stop_production.sh"
echo " • Restart server: ./stop_production.sh && ./start_production.sh"
echo " • View error log: tail -f /srv/quality_recticel/logs/error.log"
echo " • View access log: tail -f /srv/quality_recticel/logs/access.log"
echo " • View error log: tail -f $LOG_DIR/error.log"
echo " • View access log: tail -f $LOG_DIR/access.log"
echo ""
# Check if the web server is responding