You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
To automate the setup and build processes for both the backend and frontend applications, run the `initial_setup.sh` script located in the root directory of the project. This script will handle building both the backend and frontend applications and configuring PM2 services automatically.
632
+
To automate the setup and build processes for both the backend and frontend applications, run the `initial_setup.sh` script located in the root directory of the project. This script will handle building both the backend and frontend applications and configuring systemctl services automatically.
638
633
```
639
634
cd /home/iot-server/
640
635
sudo chmod +x initial_setup.sh
@@ -703,12 +698,35 @@ mv source target
703
698
# delete a directory or file
704
699
rm -rf directoryName
705
700
706
-
pm2 list # Show running processes
707
-
pm2 show my-app # Show details of a specific process
708
-
pm2 stop my-app # Stop a process
709
-
pm2 restart my-app # Restart a process
710
-
pm2 delete my-app # Remove a process from PM2
711
-
pm2 logs # Show logs of all processes
701
+
# View logs for a specific service (last 1 minute):
0 commit comments