diff --git a/.github/workflows/fly-deploy.yml b/.github/workflows/fly-deploy.yml index 5949bf9..56d9200 100644 --- a/.github/workflows/fly-deploy.yml +++ b/.github/workflows/fly-deploy.yml @@ -26,6 +26,6 @@ jobs: steps: - uses: actions/checkout@v4 - uses: superfly/flyctl-actions/setup-flyctl@master - - run: flyctl deploy --remote-only + - run: flyctl deploy --remote-only --strategy bluegreen env: FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }} diff --git a/fly.toml b/fly.toml index fc1a455..e4869b8 100644 --- a/fly.toml +++ b/fly.toml @@ -6,14 +6,17 @@ app = 'kjvstudy' primary_region = 'iad' +[deploy] +strategy = "bluegreen" + [build] [http_service] internal_port = 8000 force_https = true -auto_stop_machines = 'suspend' +auto_stop_machines = 'off' auto_start_machines = true -min_machines_running = 1 +min_machines_running = 2 processes = ['app'] [http_service.concurrency]