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?
Go to Azure Configuration>General Settings
build folder is at the root of the projectStart up command: pm2 serve /home/site/wwwroot --no-daemon --spa
build folder is inside your client folder, just add the pathStart up command: pm2 serve /home/site/wwwroot/client/build --no-daemon --spa
Note:
Make sure your using Azure App Service linux server.
I added --spa add the end to fix the issue of react-router redirect, Using --spa option pm2 will automatically redirect all queries to the index.html and then react-router will do its magic.