Failed due to unhealthy allocations: port setting ?

Hello, i’m trying to deploy Tooljet but it seems i’m doing something wrong. I get “Failed due to unhealthy allocations” error each time.
I’ve read it’s an error about port so i added an env var to pick 8080 but don’t seem to work

i’m using flyctl deploy --image tooljet/tooljet-ce with this toml file:

kill_signal = “SIGINT”
kill_timeout = 5
processes =

[env]
TOOLJET_SERVER_PORT = “8080”

[experimental]
allowed_public_ports =
auto_rollback = true

[[services]]
http_checks =
internal_port = 8080
processes = [“app”]
protocol = “tcp”
script_checks =
[services.concurrency]
hard_limit = 25
soft_limit = 20
type = “connections”

[[services.ports]]
force_https = true
handlers = [“http”]
port = 80

[[services.ports]]
handlers = [“tls”, “http”]
port = 443

[[services.tcp_checks]]
grace_period = “1s”
interval = “15s”
restart_limit = 0
timeout = “2s”

Any suggestions ?

I’m not sure, but try adding:

NODE_ENV = "production"

to the [env].

same error , thx for the suggestion

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

same :frowning:

Hey, did you find your way around ?

I managed to figure this out. I found tooljet was running on port 3000, not sure why.

I added this to my services config

[[services]]
  internal_port = 3000