Spaces:
Paused
Paused
Create ecosystem.config.js
Browse files- ecosystem.config.js +17 -0
ecosystem.config.js
ADDED
|
@@ -0,0 +1,17 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
module.exports = {
|
| 2 |
+
apps: [
|
| 3 |
+
{
|
| 4 |
+
name: 'backend', // Name of the backend process
|
| 5 |
+
script: 'nodemon',
|
| 6 |
+
args: 'start', // Arguments for nodemon
|
| 7 |
+
watch: true
|
| 8 |
+
},
|
| 9 |
+
{
|
| 10 |
+
name: 'frontend', // Name of the frontend process
|
| 11 |
+
script: 'npm',
|
| 12 |
+
args: 'start',
|
| 13 |
+
cwd: './client', // The directory where your frontend is located
|
| 14 |
+
watch: true
|
| 15 |
+
}
|
| 16 |
+
]
|
| 17 |
+
};
|