diff --git a/apps/backend/project.json b/apps/backend/project.json index 377aa43d..295bd383 100644 --- a/apps/backend/project.json +++ b/apps/backend/project.json @@ -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": { @@ -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" }, diff --git a/zerops.yml b/zerops.yml index 7d2e3cc0..dead11a4 100644 --- a/zerops.yml +++ b/zerops.yml @@ -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 @@ -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: