add ecosystem.config.js for pm2
@@ -0,0 +1,17 @@
+'use strict';
+
+const app = 'vpnserve';
+module.exports = {
+ apps: [{
+ name: app,
+ script: './server.js',
+ out: `./logs/${app}.log`,
+ error: `./logs/${app}.err`,
+ watch: [
+ 'app', 'config',
+ ],
+ env: {
+ NODE_ENV: 'production',
+ },
+ }],
+};