-
How to make 24/7 hosting bot setup? [Asked by a Discord memeber] |
Beta Was this translation helpful? Give feedback.
Answered by
Refloow
Jul 5, 2021
Replies: 1 comment
-
There is multiple solutions but using PM2 module would be an optimal solution. 1. Setup the module
Another solution would be to manually add pm2 to
2. Run the script using the module
Another solution would be to manually add command |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
Refloow
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
There is multiple solutions but using PM2 module would be an optimal solution.
1. Setup the module
npm install pm2 --save-prod
command will add pm2 to module dependencies.
Another solution would be to manually add pm2 to
"dependencies"
as"pm2": "latest",
topackage.json
In case of adding pm2 manually to
package.json
package.json
.2. Run the script using the module
pm2 start index.js
Another solution would be to manually add command
pm2 start …