-
Notifications
You must be signed in to change notification settings - Fork 18
/
pm2.config.js
57 lines (57 loc) · 1.6 KB
/
pm2.config.js
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
48
49
50
51
52
53
54
55
56
57
module.exports = {
apps: [
{
name: "Prisma",
script: "prisma generate",
watch: ["./prisma"],
autorestart: false,
env: {
NODE_ENV: process.env.NODE_ENV ?? "development",
PRISMA_CLIENT_ENGINE_TYPE: "dataproxy",
},
},
{
name: "Tailwind",
script: "tailwindcss -o ./app/tailwind.css --watch",
ignore_watch: ["."],
env: {
NODE_ENV: process.env.NODE_ENV ?? "development",
},
},
{
name: "Remix",
script: "remix watch",
ignore_watch: ["."],
env: {
NODE_ENV: process.env.NODE_ENV ?? "development",
DATABASE_URL: process.env.DATABASE_URL,
CLOUDFLARE_IMAGES_TOKEN: process.env.CLOUDFLARE_IMAGES_TOKEN,
CLOUDFLARE_ACCOUNT_ID: process.env.CLOUDFLARE_ACCOUNT_ID,
},
},
{
name: "Server",
script: "node build-server.mjs",
watch: ["./build/assets.json"],
autorestart: false,
env: {
NODE_ENV: process.env.NODE_ENV ?? "development",
DATABASE_URL: process.env.DATABASE_URL,
CLOUDFLARE_IMAGES_TOKEN: process.env.CLOUDFLARE_IMAGES_TOKEN,
CLOUDFLARE_ACCOUNT_ID: process.env.CLOUDFLARE_ACCOUNT_ID,
},
},
{
name: "Wrangler",
script: "npx wrangler pages dev ./public",
ignore_watch: ["."],
env: {
NODE_ENV: process.env.NODE_ENV ?? "development",
BROWSER: "none",
DATABASE_URL: process.env.DATABASE_URL,
CLOUDFLARE_IMAGES_TOKEN: process.env.CLOUDFLARE_IMAGES_TOKEN,
CLOUDFLARE_ACCOUNT_ID: process.env.CLOUDFLARE_ACCOUNT_ID,
},
},
],
}