最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - No ports detected message on react app deployment - Stack Overflow

programmeradmin1浏览0评论

I'm trying to deploy my react app on render and I keep coming across a message saying "No port detected, continuing to scan..." tried creating a .env file and declaring the port on there ands still not worked. Here's a snippet of the message.

react-scripts start

: Project is running at http: / /10.201.144.38/

: webpack output is served from

: Content not from webpack is served from / opt/render/project/src/public

: 404s will fallback to /

Starting the development server...

Done in 11.69s.

==> No open ports detected, continuing to scan...

==> Docs on specifying a port:....

my .env file looks like this.. "const PORT = process.env.PORT || 3000;"

I'm quite new to all this so I dunno where exactly I'm going wrong, with the port declaration in particular because I know I'm definitely doing something wrong.

发布评论

评论列表(0)

  1. 暂无评论