Deploy AdonisJS app ==> Continuing to scan for open port

Hi, I ve an error on deploy. I ve trying differents port such as 3000,8000,10000 on Render ENV and there is always the same error. Also I add a default port on my source code PORT: Env.schema.number() || 3000, but same problem.

I ve read all topics about this and I still stuck.

You’ll want to make sure the service is actually listening on the specified port as defined in your environment variable. Additionally, ensure the service is listening on 0.0.0.0.


Its already set

Ok, now it works, the “start” script in the package.json was not good and neither was the “Start Command” in the service settings.

{
... 
start : “ node build/bin/server.js”
}

Start Command : pnpm run start

are the correct values.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.