Skip to content

Commit

Permalink
Added pm2
Browse files Browse the repository at this point in the history
  • Loading branch information
Rage-Gaming committed Sep 15, 2024
1 parent b05e675 commit f350e0a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions start.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const pm2 = require('pm2');

pm2.connect((err) => {
if (err) {
console.error(err);
process.exit(1);
}

pm2.start({
script: 'index.js',
name: 'bot',
}, (err, apps) => {
pm2.disconnect();
if (err) {
console.error(err);
}
});
});

0 comments on commit f350e0a

Please sign in to comment.