Ok, try this fly.toml
:
kill_signal = “SIGINT”
kill_timeout = 5
[experimental]
cmd = ["npm", "run", "start:prod", "--prefix", "server"]
[env]
TOOLJET_SERVER_PORT = “8080”
NODE_ENV = "production"
TOOLJET_HOST = "https://<your-app-name>.fly.dev" # replace with your actual app name
[[services.ports]]
force_https = true
handlers = [“http”]
port = 80
[[services.ports]]
handlers = [“tls”, “http”]
port = 443
[[services.http_checks]]
method = "get"
path = "/"
protocol = "http"
restart_limit = 0
timeout = 2000
tls_skip_verify = false
[services.http_checks.headers]
host = "<your-app-name>.fly.dev" # replace with your actual app name
[[services.tcp_checks]]
grace_period = “1s”
interval = “15s”
restart_limit = 0
timeout = “2s”
Make sure you replace <your-app-name>
with your actual app name.
Edit: added [experimental]
cmd