From 0765299d60ce15aa4eaaa4283cdc794ea2a50fb3 Mon Sep 17 00:00:00 2001 From: Derick Date: Thu, 25 Apr 2024 23:28:38 -0500 Subject: [PATCH] docker ignore --- .dockerignore | 7 +++++++ .github/workflows/deploy.yml | 2 +- fly.toml | 30 ++++++++---------------------- 3 files changed, 16 insertions(+), 23 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..709870d --- /dev/null +++ b/.dockerignore @@ -0,0 +1,7 @@ +/node_modules +*.log +.DS_Store +.env +/.cache +/public/build +/build \ No newline at end of file diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9c40e96..6d6f402 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -56,7 +56,7 @@ jobs: - name: 🎈 Setup Fly uses: superfly/flyctl-actions/setup-flyctl@1.5 - - name: 🚀 Deploy Staging + - name: 🚀 Deploy development if: ${{ github.ref == 'refs/heads/development' }} run: flyctl deploy --remote-only --app ${{ steps.app_name.outputs.value }}-development env: diff --git a/fly.toml b/fly.toml index e514751..026efc3 100644 --- a/fly.toml +++ b/fly.toml @@ -11,25 +11,11 @@ kill_timeout = '5s' [experimental] auto_rollback = true - -[env] - PORT = '8080' - -[[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 +[services] + [checks.name_of_your_http_check] + grace_period = "30s" + interval = "15s" + method = "get" + port = 5500 + timeout = "10s" + type = "http"