feat(infra): add pm2ecosystem config
authorxangelo <me@xangelo.ca>
Mon, 25 Nov 2024 21:53:14 +0000 (16:53 -0500)
committerxangelo <me@xangelo.ca>
Mon, 25 Nov 2024 21:55:58 +0000 (16:55 -0500)
ecosystem.config.js [new file with mode: 0644]

diff --git a/ecosystem.config.js b/ecosystem.config.js
new file mode 100644 (file)
index 0000000..d12cd29
--- /dev/null
@@ -0,0 +1,13 @@
+module.exports = {
+    apps: [
+        {
+            name: 'rising-legends',
+            script: 'dist/src/server/api.js',
+            node_args: '-r ts-node/register -r tsconfig-paths/register',
+            env: {
+                TS_NODE_BASEURL: './dist',
+                NODE_ENV: 'production'
+            }
+        }
+    ]
+}
\ No newline at end of file