diff --git a/builder/modal-builder/README.md b/builder/modal-builder/README.md index c68c46e..a8bd3a2 100644 --- a/builder/modal-builder/README.md +++ b/builder/modal-builder/README.md @@ -42,6 +42,9 @@ fly secrets set MODAL_TOKEN_SECRET= ## 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 app = @@ -54,4 +57,4 @@ fly launch if not, run this instead ``` fly deploy -``` \ No newline at end of file +``` diff --git a/builder/modal-builder/fly.production.toml b/builder/modal-builder/fly.production.toml new file mode 100644 index 0000000..e2b1daf --- /dev/null +++ b/builder/modal-builder/fly.production.toml @@ -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"] diff --git a/builder/modal-builder/fly.toml b/builder/modal-builder/fly.toml index e2b1daf..0a26845 100644 --- a/builder/modal-builder/fly.toml +++ b/builder/modal-builder/fly.toml @@ -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. # -app = "modal-builder" -primary_region = "sea" +app = 'modal-builder-preview' +primary_region = 'sea' [build] @@ -14,4 +14,9 @@ primary_region = "sea" auto_stop_machines = true auto_start_machines = true min_machines_running = 0 - processes = ["app"] + processes = ['app'] + +[[vm]] + cpu_kind = 'shared' + cpus = 1 + memory_mb = 1024