Skip to content

Commit

Permalink
fix(api): check output of building executable with ls
Browse files Browse the repository at this point in the history
  • Loading branch information
BleedingDev committed Nov 16, 2024
1 parent 459867a commit 5923dd2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 6 deletions.
10 changes: 6 additions & 4 deletions apps/backend/project.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,15 @@
"build:executable": {
"executor": "nx:run-commands",
"options": {
"command": "bun build --compile --minify --sourcemap apps/backend/src/index.ts --outfile ./apps/dist/backend apps/backend/src/index.ts"
"command": "bun build --compile --minify --sourcemap apps/backend/src/index.ts --outfile ./apps/backend/dist/main apps/backend/src/index.ts"
},
"cache": true
},
"start:executable": {
"executor": "nx:run-commands",
"options": {
"command": "backend",
"cwd": "apps/dist"
"command": "main",
"cwd": "apps/backend/dist"
}
},
"dev": {
Expand All @@ -43,7 +43,9 @@
"executor": "nx:run-commands",
"options": {
"cwd": "apps/backend",
"commands": ["bunx tsc --pretty --noEmit -p tsconfig.json"],
"commands": [
"bunx tsc --pretty --noEmit -p tsconfig.json"
],
"forwardAllArgs": false,
"description": "Type check with tsc"
},
Expand Down
5 changes: 3 additions & 2 deletions zerops.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,9 @@ zerops:
- bun run postinstall
- bun run validateEnv
- bun x nx build:executable backend
- ls apps/backend
deployFiles:
- apps/dist/backend
- apps/backend/dist
- node_modules
cache:
- node_modules
Expand All @@ -40,7 +41,7 @@ zerops:
- echo "Installing yt-dlp"
- curl -L https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp -o /usr/bin/yt-dlp
- chmod a+rx /usr/bin/yt-dlp # Make executable
start: apps/dist/backend
start: apps/backend/dist/main

deploy:
readinessCheck:
Expand Down

1 comment on commit 5923dd2

@vercel
Copy link

@vercel vercel bot commented on 5923dd2 Nov 16, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

web – ./apps/legacy_nmit

naucme.it
web-naucmeits-projects.vercel.app
web-git-master-naucmeits-projects.vercel.app

Please sign in to comment.