WORKKKKKKKS ; Page loading works really well now. If anything goes wrong revert to this commit

This commit is contained in:
2025-06-18 16:39:43 +02:00
parent 7d4e5b226f
commit dd10624ce4
7 changed files with 65 additions and 17 deletions

32
start_pm2.sh Executable file
View File

@@ -0,0 +1,32 @@
#!/bin/bash
# Check the command line argument
case "$1" in
autodeploy)
echo "Starting PM2 with auto-deployment..."
pm2 start pm2.config.js
;;
prod)
echo "Starting PM2 with production build..."
NODE_ENV=production pm2 start pm2.config.js
;;
stop)
echo "Stopping PM2 process..."
pm2 stop all
;;
restart)
echo "Restarting PM2 process..."
pm2 restart all
;;
status)
echo "Showing PM2 process status..."
pm2 status
;;
logs)
echo "Showing PM2 logs..."
pm2 logs
;;
*)
echo "Usage: ./start_pm2 {autodeploy|prod|stop|restart|status|logs}"
;;
esac