aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.nvmrc1
-rw-r--r--ecosystem.config.cjs4
2 files changed, 3 insertions, 2 deletions
diff --git a/.nvmrc b/.nvmrc
new file mode 100644
index 0000000..8e2afd3
--- /dev/null
+++ b/.nvmrc
@@ -0,0 +1 @@
+17 \ No newline at end of file
diff --git a/ecosystem.config.cjs b/ecosystem.config.cjs
index 90c39e5..3262f29 100644
--- a/ecosystem.config.cjs
+++ b/ecosystem.config.cjs
@@ -3,7 +3,7 @@ module.exports = {
{
name: 'bush-bot',
script: 'yarn',
- args: 'node --experimental-json-modules --no-warnings dist/src/bot.js',
+ args: 'nvm run --experimental-json-modules --no-warnings dist/src/bot.js',
out_file: '../bushbot.log',
error_file: '../bushbot.log',
max_memory_restart: '1G',
@@ -17,7 +17,7 @@ module.exports = {
{
name: 'bush-bot-beta',
script: 'yarn',
- args: 'node --experimental-json-modules --no-warnings dist/src/bot.js',
+ args: 'nvm run --experimental-json-modules --no-warnings dist/src/bot.js',
out_file: '../bushbot-beta.log',
error_file: '../bushbot-beta.log',
max_memory_restart: '1G',