-
Notifications
You must be signed in to change notification settings - Fork 168
/
zerops.yml
33 lines (33 loc) · 1 KB
/
zerops.yml
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
zerops:
- setup: spartanng
build:
base: nodejs@22
envVariables:
NODE_OPTIONS: --max-old-space-size=8192
buildCommands:
# install dev dependencies & build app
- pnpm i
- npx nx build app --prod
# clean up dev dependencies
# (mv faster than rm)
- |
mv node_modules _node_modules
mv package.json _package.json
mv pnpm-lock.yaml _pnpm-lock.yaml
# install runtime migration dependencies
- pnpm add drizzle-kit drizzle-orm postgres
deployFiles:
- node_modules
- dist/apps/app/analog/~
- tools/scripts/~drizzle-migrate.config.ts
- apps/app/~drizzle
run:
base: nodejs@22
envVariables:
DATABASE_URL: ${db_connectionString}/${db_dbName}
initCommands:
- zsc execOnce $appVersionId -- drizzle-kit migrate --config=drizzle-migrate.config.ts
ports:
- port: 3000
httpSupport: true
start: node server/index.mjs