Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/azure/12.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Reactjs 为什么Azure在部署react应用程序时HTTP ping失败?_Reactjs_Azure_Azure Web App Service_Azure Webapps - Fatal编程技术网

Reactjs 为什么Azure在部署react应用程序时HTTP ping失败?

Reactjs 为什么Azure在部署react应用程序时HTTP ping失败?,reactjs,azure,azure-web-app-service,azure-webapps,Reactjs,Azure,Azure Web App Service,Azure Webapps,获得了一个react应用程序,使用“create react app”创建,在Mac OSX上运行。(没有问题)。 一旦我部署到Azure,它似乎将其包装在docker容器中,这就是问题的开始 它部署正常,但当应用程序启动时,我得到以下错误 2020-05-31T08:35:19.112Z INFO - docker run -d -p 7733:8081 --name stock-market-game_0_73cadc78_middleware -e WEBSITE_NODE_DEFAUL

获得了一个react应用程序,使用“create react app”创建,在Mac OSX上运行。(没有问题)。 一旦我部署到Azure,它似乎将其包装在docker容器中,这就是问题的开始

它部署正常,但当应用程序启动时,我得到以下错误

2020-05-31T08:35:19.112Z INFO  - docker run -d -p 7733:8081 --name stock-market-game_0_73cadc78_middleware -e WEBSITE_NODE_DEFAULT_VERSION=10.10 -e APPSETTING_WEBSITE_NODE_DEFAULT_VERSION=10.10 -e WEBSITE_CORS_ALLOWED_ORIGINS=* -e WEBSITE_CORS_SUPPORT_CREDENTIALS=False -e WEBSITES_PORT=443 -e Port=443 -e WEBSITE_SITE_NAME=stock-market-game -e WEBSITE_AUTH_ENABLED=False -e WEBSITE_ROLE_INSTANCE_ID=0 -e WEBSITE_HOSTNAME=stock-market-game.azurewebsites.net -e WEBSITE_INSTANCE_ID=8e5bf20839a2c0a3c50f56fdb0fe9eef2cfdaa38cc8dc7b192b8300d0263d579 -e HTTP_LOGGING_ENABLED=1 appsvc/middleware:2001061754 /Host.ListenUrl=http://0.0.0.0:8081 /Host.DestinationHostUrl=http://172.16.0.3:443 /Host.UseFileLogging=true
2020-05-31T08:35:22.388Z INFO  - Initiating warmup request to container stock-market-game_0_73cadc78 for site stock-market-game
2020-05-31T08:35:38.450Z INFO  - Waiting for response to warmup request for container stock-market-game_0_73cadc78. Elapsed time = 16.0613799 sec
2020-05-31T08:35:53.604Z INFO  - Waiting for response to warmup request for container stock-market-game_0_73cadc78. Elapsed time = 31.2159855 sec
2020-05-31T08:36:04.158Z ERROR - Container stock-market-game_0_73cadc78 for site stock-market-game has exited, failing site start
2020-05-31T08:36:04.158Z INFO  - Initiating warmup request to container stock-market-game_0_73cadc78_middleware for site stock-market-game
2020-05-31T08:36:08.026Z INFO  - Container stock-market-game_0_73cadc78_middleware for site stock-market-game initialized successfully and is ready to serve requests.
2020-05-31T08:36:08.037Z ERROR - Container stock-market-game_0_73cadc78 didn't respond to HTTP pings on port: 443, failing site start. See container logs for debugging.
2020-05-31T08:36:08.127Z INFO  - Stopping site stock-market-game because it failed during startup.
我已经添加了端口和网站的应用程序设置(如上面的日志所示)。但我不明白为什么它会失败


有什么想法吗?

Ping失败,因为容器没有启动。您需要找出容器未启动的原因。启用应用程序日志记录、下载日志或流式传输日志以查找错误。Ping失败,因为容器未启动。您需要找出容器未启动的原因。启用应用程序日志记录、下载日志或对其进行流式处理以查找错误。