Browse Source

add pm2 start npm

master
Amirul Anwar 2 weeks ago
parent
commit
1b22333991
1 changed files with 17 additions and 0 deletions
  1. 17
    0
      ecosystem.config.js

+ 17
- 0
ecosystem.config.js View File

@@ -0,0 +1,17 @@
1
+module.exports = {
2
+  apps: [
3
+    {
4
+      name: 'amber-app',
5
+      script: 'npm',
6
+      args: 'start',
7
+      env: {
8
+        NODE_ENV: 'development',
9
+        REACT_APP_API_URL: process.env.REACT_APP_API_URL,
10
+        REACT_APP_API_KEY: process.env.REACT_APP_API_KEY,
11
+        REACT_APP_API_SECRET: process.env.REACT_APP_API_SECRET,
12
+        REACT_APP_ACCESS_TOKEN: process.env.REACT_APP_ACCESS_TOKEN,
13
+        REACT_APP_SHOP_NAME: process.env.REACT_APP_SHOP_NAME,
14
+      },
15
+    },
16
+  ],
17
+};

Loading…
Cancel
Save