This commit is contained in:
bennykok
2024-01-27 11:38:28 +08:00
3 changed files with 30 additions and 5 deletions
+4 -1
View File
@@ -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 = <APP_NAME>
@@ -54,4 +57,4 @@ fly launch
if not, run this instead
```
fly deploy
```
```
+17
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"]
+9 -4
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.
#
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