Skip to content

Commit

Permalink
Update auto scaling
Browse files Browse the repository at this point in the history
  • Loading branch information
brophdawg11 committed Oct 20, 2023
1 parent d8c8d2c commit 092eedd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ FROM node:18-alpine as production
WORKDIR /brophy.org
COPY --from=build /brophy.org/package.json /brophy.org/package-lock.json ./
COPY --from=build /brophy.org/node_modules ./node_modules
RUN npm prune --production
RUN npm prune --omit=dev
COPY --from=build /brophy.org/build ./build
COPY --from=build /brophy.org/posts ./posts
COPY --from=build /brophy.org/public ./public
Expand Down
7 changes: 5 additions & 2 deletions fly.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ primary_region = "iad"
internal_port = 3000
processes = ["app"]
protocol = "tcp"
auto_start_machines = true
auto_stop_machines = true
min_machines_running = 1

[services.concurrency]
hard_limit = 25
Expand All @@ -28,5 +31,5 @@ primary_region = "iad"

[[services.tcp_checks]]
grace_period = "5s"
interval = "15s"
timeout = "2s"
interval = "60s"
timeout = "5s"

0 comments on commit 092eedd

Please sign in to comment.