Skip to content

Commit 5923dd2

Browse files
committed
fix(api): check output of building executable with ls
1 parent 459867a commit 5923dd2

File tree

2 files changed

+9
-6
lines changed

2 files changed

+9
-6
lines changed

apps/backend/project.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,15 @@
99
"build:executable": {
1010
"executor": "nx:run-commands",
1111
"options": {
12-
"command": "bun build --compile --minify --sourcemap apps/backend/src/index.ts --outfile ./apps/dist/backend apps/backend/src/index.ts"
12+
"command": "bun build --compile --minify --sourcemap apps/backend/src/index.ts --outfile ./apps/backend/dist/main apps/backend/src/index.ts"
1313
},
1414
"cache": true
1515
},
1616
"start:executable": {
1717
"executor": "nx:run-commands",
1818
"options": {
19-
"command": "backend",
20-
"cwd": "apps/dist"
19+
"command": "main",
20+
"cwd": "apps/backend/dist"
2121
}
2222
},
2323
"dev": {
@@ -43,7 +43,9 @@
4343
"executor": "nx:run-commands",
4444
"options": {
4545
"cwd": "apps/backend",
46-
"commands": ["bunx tsc --pretty --noEmit -p tsconfig.json"],
46+
"commands": [
47+
"bunx tsc --pretty --noEmit -p tsconfig.json"
48+
],
4749
"forwardAllArgs": false,
4850
"description": "Type check with tsc"
4951
},

zerops.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,9 @@ zerops:
2323
- bun run postinstall
2424
- bun run validateEnv
2525
- bun x nx build:executable backend
26+
- ls apps/backend
2627
deployFiles:
27-
- apps/dist/backend
28+
- apps/backend/dist
2829
- node_modules
2930
cache:
3031
- node_modules
@@ -40,7 +41,7 @@ zerops:
4041
- echo "Installing yt-dlp"
4142
- curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/bin/yt-dlp
4243
- chmod a+rx /usr/bin/yt-dlp # Make executable
43-
start: apps/dist/backend
44+
start: apps/backend/dist/main
4445

4546
deploy:
4647
readinessCheck:

0 commit comments

Comments
 (0)