-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathecosystem.config.cjs
47 lines (41 loc) · 925 Bytes
/
ecosystem.config.cjs
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
37
38
39
40
41
42
43
44
45
46
47
// @ts-check
/**
* @type {import('pm2/types').StartOptions}
*/
const common = {
instances: 1,
autorestart: false,
log_date_format: 'HH:mm:ss',
}
/**
* @type {{apps: import('pm2/types').StartOptions[]}}
*/
const config = {
apps: [
{
...common,
name: 'prisma',
script: 'npx prisma generate',
watch: ['prisma/schema.prisma'],
},
{
...common,
name: 'icons',
script: 'npx tsx generate-svg-icons-sprite.ts',
watch: ['generate-svg-icons-sprite.ts', './svgs/**/*.svg'],
},
{
...common,
name: 'routes',
script: 'npx tsx generate-remix-routes.ts',
watch: ['generate-remix-routes.ts', 'remix.config.js', './app/routes/**/*.tsx'],
},
{
...common,
name: 'server',
watch: ['server/**/*', '.env'],
script: 'node --env-file=.env --inspect --import tsx server',
},
],
}
module.exports = config