Skip to content

Commit

Permalink
fix fly deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jkelleyrtp committed Feb 4, 2025
1 parent 161750f commit d01a911
Show file tree
Hide file tree
Showing 5 changed files with 54 additions and 27 deletions.
8 changes: 8 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
**/target
**/dist
LICENSES
LICENSE
temp
README.md

dx-debian
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,11 @@ jobs:
deploy:
name: Deploy app
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v4
- uses: superfly/flyctl-actions/setup-flyctl@master
- working-directory: packages/playground
- run: flyctl deploy --remote-only
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
2 changes: 1 addition & 1 deletion packages/playground/Dockerfile → Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ RUN set -ex; \
FROM pre-runtime AS runtime

COPY --from=builder /app/target/release/server /usr/local/bin
COPY --from=builder /app/server/template /usr/local/bin/template
COPY --from=builder /app/packages/playground/server/template /usr/local/bin/template
COPY --from=planner /.cargo/bin/dx /usr/local/bin

ENV PATH="${PATH}:/usr/local/bin"
Expand Down
43 changes: 43 additions & 0 deletions fly.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# fly.toml app configuration file generated for docsite-playground on 2025-02-04T15:44:00-08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'docsite-playground'
primary_region = 'lax'
kill_signal = 'SIGINT'
kill_timeout = '5s'

[build]

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = 'stop'
auto_start_machines = true
min_machines_running = 0
processes = ['app']

[[services]]
protocol = 'tcp'
internal_port = 8080
processes = ['app']

[[services.ports]]
port = 80
handlers = ['http']
force_https = true

[[services.ports]]
port = 443
handlers = ['tls', 'http']

[services.concurrency]
type = 'connections'
hard_limit = 25
soft_limit = 20

[[vm]]
memory = '1gb'
cpu_kind = 'shared'
cpus = 1
25 changes: 0 additions & 25 deletions packages/playground/fly.toml

This file was deleted.

0 comments on commit d01a911

Please sign in to comment.