Search code examples
javascriptreactjsazureazure-web-app-serviceazure-app-service-plans

React App not starting in azure app service


I've deployed a simple react app to azure app service and it won't start:

How do I get the app to run index.html?

enter image description here


Solution

  • add this command in your azure dashboard > Configuration > Startup Command

    pm2 serve /home/site/wwwroot --no-daemon

    and restart your server. This fixed it for me!