Update fly.toml, .woodpecker.yml, and Dockerfile for deployment improvements
- Increased health check grace period in `fly.toml` to 30s. - Added `dist` directory to cache mounts in `.woodpecker.yml`. - Fixed file copy path in `Dockerfile` for accurate builds.
This commit is contained in:
+2
-1
@@ -23,4 +23,5 @@ branches:
|
|||||||
cache:
|
cache:
|
||||||
mount:
|
mount:
|
||||||
- node_modules
|
- node_modules
|
||||||
- .npm
|
- .npm
|
||||||
|
- dist
|
||||||
+1
-1
@@ -5,7 +5,7 @@ WORKDIR /app
|
|||||||
COPY package*.json ./
|
COPY package*.json ./
|
||||||
RUN npm ci
|
RUN npm ci
|
||||||
|
|
||||||
COPY ../backup/backup .
|
COPY . .
|
||||||
|
|
||||||
RUN npm run build
|
RUN npm run build
|
||||||
|
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ kill_timeout = 5
|
|||||||
[[http_service.checks]]
|
[[http_service.checks]]
|
||||||
interval = "30s"
|
interval = "30s"
|
||||||
timeout = "5s"
|
timeout = "5s"
|
||||||
grace_period = "10s"
|
grace_period = "30s"
|
||||||
method = "GET"
|
method = "GET"
|
||||||
path = "/"
|
path = "/"
|
||||||
protocol = "http"
|
protocol = "http"
|
||||||
|
|||||||
Reference in New Issue
Block a user