Skip to content

Supercharge your AI agents with data from the web and beyond. Building the library for superintelligence. 🔥

fix: rename fly tomls to original

Gergo Moriczf64a2d8668c8
diff --git a/apps/api/_ORIGIN_fly.toml b/apps/api/fly.staging.toml
similarity index 74%
rename from apps/api/_ORIGIN_fly.toml
rename to apps/api/fly.staging.toml
index 481290f05..09fa135e1 100644
--- a/apps/api/_ORIGIN_fly.toml
+++ b/apps/api/fly.staging.toml
@@ -3,13 +3,13 @@
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
-app = 'firecrawl-scraper-js'
+app = 'staging-firecrawl-scraper-js'
primary_region = 'mia'
kill_signal = 'SIGINT'
kill_timeout = '30s'
[deploy]
- release_command = 'node dist/src/trigger-shutdown.js https://api.firecrawl.dev'
+ release_command = 'node dist/src/trigger-shutdown.js https://staging-firecrawl-scraper-js.fly.dev'
[build]
@@ -20,7 +20,7 @@ kill_timeout = '30s'
[http_service]
internal_port = 8080
force_https = true
- auto_stop_machines = false
+ auto_stop_machines = true
auto_start_machines = true
min_machines_running = 2
processes = ['app']
@@ -31,16 +31,17 @@ kill_timeout = '30s'
soft_limit = 50
[[http_service.checks]]
- grace_period = "20s"
+ grace_period = "10s"
interval = "30s"
method = "GET"
- timeout = "15s"
+ timeout = "5s"
path = "/"
+
[[services]]
protocol = 'tcp'
internal_port = 8080
- processes = ['app']
+ processes = ['worker']
[[services.ports]]
port = 80
@@ -53,12 +54,13 @@ kill_timeout = '30s'
[services.concurrency]
type = 'connections'
- hard_limit = 30
- soft_limit = 12
+ hard_limit = 25
+ soft_limit = 20
[[vm]]
- size = 'performance-4x'
- processes = ['app']
+ size = 'performance-1x'
+ processes = ['app','worker']
+
diff --git a/apps/api/fly.toml b/apps/api/fly.toml
index 09fa135e1..481290f05 100644
--- a/apps/api/fly.toml
+++ b/apps/api/fly.toml
@@ -3,13 +3,13 @@
# See https://fly.io/docs/reference/configuration/ for information about how to use this file.
#
-app = 'staging-firecrawl-scraper-js'
+app = 'firecrawl-scraper-js'
primary_region = 'mia'
kill_signal = 'SIGINT'
kill_timeout = '30s'
[deploy]
- release_command = 'node dist/src/trigger-shutdown.js https://staging-firecrawl-scraper-js.fly.dev'
+ release_command = 'node dist/src/trigger-shutdown.js https://api.firecrawl.dev'
[build]
@@ -20,7 +20,7 @@ kill_timeout = '30s'
[http_service]
internal_port = 8080
force_https = true
- auto_stop_machines = true
+ auto_stop_machines = false
auto_start_machines = true
min_machines_running = 2
processes = ['app']
@@ -31,17 +31,16 @@ kill_timeout = '30s'
soft_limit = 50
[[http_service.checks]]
- grace_period = "10s"
+ grace_period = "20s"
interval = "30s"
method = "GET"
- timeout = "5s"
+ timeout = "15s"
path = "/"
-
[[services]]
protocol = 'tcp'
internal_port = 8080
- processes = ['worker']
+ processes = ['app']
[[services.ports]]
port = 80
@@ -54,13 +53,12 @@ kill_timeout = '30s'
[services.concurrency]
type = 'connections'
- hard_limit = 25
- soft_limit = 20
+ hard_limit = 30
+ soft_limit = 12
[[vm]]
- size = 'performance-1x'
- processes = ['app','worker']
-
+ size = 'performance-4x'
+ processes = ['app']