This commit is contained in:
luk
2026-07-19 12:17:02 +08:00
parent ae37e23e8f
commit d2aa406067
3 changed files with 15 additions and 5 deletions

8
autostart.sh Normal file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
## this file is used to start all the backend services on system startup.
## /usr/bin/npm is not available even if nodejs is apt-installed. Must enable nvm to use npm.
source /root/.nvm/nvm.sh
## add `sudo` to run tasks as root so as to be displayed in `sudo pm2 list`