0

I have a react app running fine on localhost:3000. When I deploy on Azure app service build and start up succeed but the error is that the app is not responding on 8080. Being able to view the output of console.log would really be a help to seeing whether the app is starting on the right port or not! I've configured app service logging but no log messages. I think both std.err and std.out should end up in the docker logs that I can view from VS Code. Is there something I could have missed?

Mark Murphy
  • 1,580
  • 1
  • 16
  • 29

1 Answers1

3

In azure webapp, the port only supports 80 and 443, usually we define process.env.PORT || '3000' in the code like this.

It is recommended to use continuous deployment to make the deployment process more convenient.

Test Sample code. (offical sample code)

I modify it for test.

enter image description here

Deploy by git.

enter image description here

After deployed.

enter image description here

Setting App Service logs.

enter image description here

Check Log stream, you will find the content of console.log.

enter image description here

Jason Pan
  • 15,263
  • 1
  • 14
  • 29