-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Running in the background
user edited this page Feb 16, 2023
·
1 revision
This will not work for Replit. You need a server that isn't a little Replit box.
You can run Ultraviolet-App via PM2 by doing the following:
-
Install PM2 globally
npm i -g pm2
-
Start Ultraviolet-App inside PM2 under the name "Ultraviolet-App"
Make sure to run this inside the Ultraviolet-App directory
pm2 start "npm start" --name "Ultraviolet-App"
This should now start it in the background. You may want to enable PM2 at startup:
pm2 startup
Make sure to run any systemctl commands that pm2 startup
outputs.
If you want to restore anything in PM2 after a reboot, run pm2 resurrect