WasabiDrop commited on
Commit
aa5a151
·
verified ·
1 Parent(s): 0501295

Create ecosystem.config.js

Browse files
Files changed (1) hide show
  1. ecosystem.config.js +24 -0
ecosystem.config.js ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ // ecosystem.config.js
2
+ module.exports = {
3
+ apps : [
4
+ {
5
+ name : "librechat-api",
6
+ script : "npm",
7
+ args : "run backend",
8
+ cwd : "/app/api", // Run 'npm run backend' from the /app/api directory
9
+ watch : false,
10
+ env : { // Inherit environment variables from the container
11
+ NODE_ENV: "production", // Example, adjust if needed
12
+ }
13
+ },
14
+ {
15
+ name : "admin-tasks",
16
+ script : "/app/admin-tasks.js", // Path to the admin script inside the container
17
+ cwd : "/app", // Run the node script from the /app directory
18
+ watch : false, // Don't restart on file changes
19
+ env : { // Inherit environment variables, especially ADMIN_SECRET_KEY and ADMIN_PORT
20
+ NODE_ENV: "production",
21
+ }
22
+ }
23
+ ]
24
+ };