This commit is contained in:
bennykok 2024-01-27 11:38:28 +08:00
commit d3e1ca1b0b
3 changed files with 30 additions and 5 deletions

View File

@ -42,6 +42,9 @@ fly secrets set MODAL_TOKEN_SECRET=
## To deploy ## To deploy
We have 2 `toml` files one for `production` and the other for `staging`
it will default to `staging` if you don't include the `-c` flag to choose your config file
``` ```
// model-builder/fly.toml // model-builder/fly.toml
app = <APP_NAME> app = <APP_NAME>

View File

@ -0,0 +1,17 @@
# fly.toml app configuration file generated for modal-builder on 2024-01-03T22:29:34+08:00
#
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
app = "modal-builder"
primary_region = "sea"
[build]
[http_service]
internal_port = 8080
force_https = true
auto_stop_machines = true
auto_start_machines = true
min_machines_running = 0
processes = ["app"]

View File

@ -1,10 +1,10 @@
# fly.toml app configuration file generated for modal-builder on 2024-01-03T22:29:34+08:00 # fly.toml app configuration file generated for modal-builder-preview on 2024-01-25T09:26:31Z
# #
# See https://fly.io/docs/reference/configuration/ for information about how to use this file. # See https://fly.io/docs/reference/configuration/ for information about how to use this file.
# #
app = "modal-builder" app = 'modal-builder-preview'
primary_region = "sea" primary_region = 'sea'
[build] [build]
@ -14,4 +14,9 @@ primary_region = "sea"
auto_stop_machines = true auto_stop_machines = true
auto_start_machines = true auto_start_machines = true
min_machines_running = 0 min_machines_running = 0
processes = ["app"] processes = ['app']
[[vm]]
cpu_kind = 'shared'
cpus = 1
memory_mb = 1024