Skip to content

fix(deploy): install devDependencies and increase health check timeout#360

Open
DebuggingMax wants to merge 1 commit intoShaerWare:mainfrom
DebuggingMax:fix/deploy-devdependencies
Open

fix(deploy): install devDependencies and increase health check timeout#360
DebuggingMax wants to merge 1 commit intoShaerWare:mainfrom
DebuggingMax:fix/deploy-devdependencies

Conversation

@DebuggingMax
Copy link

Summary

Fixes #359

Changes

  1. npm ci --include=dev: Ensures devDependencies (like vue-tsc) are installed during deployment. Without this flag, npm ci skips devDependencies when NODE_ENV=production is set, causing build failures.

  2. Health check sleep 5 → 20 seconds: Gives the orchestrator more time to start before checking /health endpoint, reducing false warnings on slower systems.

Root Cause

The deploy script was running npm ci --silent which respects NODE_ENV. In production environments where NODE_ENV=production, devDependencies are skipped. Since vue-tsc is a devDependency required for building the admin panel, the build would fail with "vue-tsc not found".

- Add --include=dev to npm ci to ensure vue-tsc and other build tools are installed
- Increase health check sleep from 5 to 20 seconds for slower startups

Fixes ShaerWare#359
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

deploy.sh: npm ci не устанавливает devDependencies (vue-tsc not found)

1 participant