Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ jobs:
- name: Deploy to Dev env
uses: superfly/flyctl-actions/setup-flyctl@master

- run: flyctl deploy --remote-only
- run: flyctl deploy --remote-only --config fly-dev.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_DEV }}
2 changes: 1 addition & 1 deletion .github/workflows/fly-prod-deploy-backend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,4 +44,4 @@ jobs:

- run: flyctl deploy --remote-only --config fly-prod.toml
env:
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN }}
FLY_API_TOKEN: ${{ secrets.FLY_API_TOKEN_PROD }}
25 changes: 25 additions & 0 deletions fly-dev.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# fly-dev.toml app configuration file generated for wcc-backend on 2025-09-21T19:00:40+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'wcc-backend-dev'
primary_region = 'lhr'

[build]

[env]
SPRING_PROFILES_ACTIVE = "flyio"

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

[[vm]]
memory = '512mb'
cpu_kind = 'shared'
cpus = 1
25 changes: 25 additions & 0 deletions fly-prod.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# fly-dev.toml app configuration file generated for wcc-backend on 2025-09-21T19:00:40+02:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#

app = 'wcc-backend-prod'
primary_region = 'lhr'

[build]

[env]
SPRING_PROFILES_ACTIVE = "flyio"

[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = 'true'
auto_start_machines = true
min_machines_running = 0
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dricazenck should we not keep 1 machine running as a minimum in prod?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not the final version, it is while we are not live, because we are not using and that reduces the costs 🙈

processes = ['app']

[[vm]]
memory = '512mb'
cpu_kind = 'shared'
cpus = 1
25 changes: 0 additions & 25 deletions fly.toml

This file was deleted.

Loading