-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathecosystem.config.js
More file actions
36 lines (36 loc) · 940 Bytes
/
ecosystem.config.js
File metadata and controls
36 lines (36 loc) · 940 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
module.exports = {
apps: [
{
name: 'backend',
cwd: './backend',
script: 'yarn',
args: 'start',
watch: false,
autorestart: true,
max_memory_restart: '4G',
env: {
NODE_ENV: 'dev',
// These must be set in your environment or .env file
DATABASE_URL: process.env.DATABASE_URL,
JWT_SECRET: process.env.JWT_SECRET
}
},
{
name: 'frontend',
cwd: './frontend',
script: 'yarn',
args: 'start',
watch: false,
autorestart: true,
max_memory_restart: '4G',
env: {
NODE_ENV: 'dev',
NEXT_PUBLIC_API_BASE_URL: 'http://localhost:3002',
NEXT_PUBLIC_COMPANY_NAME: 'Apostille',
NEXT_PUBLIC_COMPANY_LOGO_URL: 'https://www.example.com/icon.png',
YARN_ENABLE_IMMUTABLE_INSTALLS: 'false',
YARN_IGNORE_PATH: 'true'
}
}
]
};