aboutsummaryrefslogtreecommitdiffstats
path: root/pm2.config.js
diff options
context:
space:
mode:
authormarzavec <admin@marzavec.com>2020-03-12 19:28:20 +0100
committermarzavec <admin@marzavec.com>2020-03-12 19:28:20 +0100
commit2b6e771383f4c6f392b32ce26e4d759b56791132 (patch)
treeb8c1cefecbd7f5816a3fb5ddc4bdb6bdfe463ba2 /pm2.config.js
parentMerge pull request #96 from MinusGix/fixKickHash (diff)
downloadhackchat-2b6e771383f4c6f392b32ce26e4d759b56791132.tar.gz
hackchat-2b6e771383f4c6f392b32ce26e4d759b56791132.zip
Protocol Updates and Bug Fixes
Diffstat (limited to 'pm2.config.js')
-rw-r--r--pm2.config.js33
1 files changed, 33 insertions, 0 deletions
diff --git a/pm2.config.js b/pm2.config.js
new file mode 100644
index 0000000..491f8e1
--- /dev/null
+++ b/pm2.config.js
@@ -0,0 +1,33 @@
+module.exports = {
+ apps : [{
+ name : 'hackchat-websocket',
+ node_args : '-r esm',
+ script : './server/main.js',
+ instances: 1,
+ autorestart: true,
+ max_memory_restart: '2G',
+ exec_mode: 'fork',
+ watch : false,
+ env: {
+ NODE_ENV: 'development'
+ },
+ env_production: {
+ NODE_ENV: 'production'
+ }
+ }, {
+ name: 'hackchat-httpd',
+ script: './node_modules/http-server/bin/http-server',
+ args: './client -p 3000 -o',
+ instances: 1,
+ autorestart: true,
+ watch: false,
+ max_memory_restart: '2G',
+ exec_mode: 'fork',
+ env: {
+ NODE_ENV: 'development'
+ },
+ env_production: {
+ NODE_ENV: 'production'
+ }
+ }]
+};