Hi I have a webservice on render that consists of a node/react app. The file directory is as such:
root
client
server
Previously I was using “/server” as my root directory on render in the build settings.
I’d like to introduce npm workspaces to clean things up. The file directory is essentially the same except there is now a package.json file in the root folder as well. It would make sense to me that when I do this, I would remove “/server” as my root directory. When I do this however, the application builds but does not deploy successfully.
The error message I get is:
==> Port scan timeout reached, no open ports detected. Bind your service to at least one port. If you don't need to receive traffic on any port, create a background worker instead.
==> Docs on specifying a port: https://render.com/docs/web-services#port-binding
==> Timed out: Port scan timeout reached, no open ports detected. Bind your service to at least one port. If you don't need to receive traffic on any port, create a background worker instead.
I have not found the port binding docs to be especially helpful.
Has anyone else encountered this error and could advise me on how to resolve it?
Thanks!