Sushant Kargwal
Sushant Kargwal

Reputation: 101

Deploy react js web app on linux app Service azure

I was deploying a react js website on the Linux app service on Azure. But its not getting deployed on the app service. I have used the pm2 command to run the app on linux environment

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

But in the error logs its giving the error of pm2 not found.And the following one

Container didn't respond to HTTP pings on port: 8080, failing site start.

Container for site has exited, failing site start

Upvotes: 3

Views: 1836

Answers (2)

G.Yasmin Banu
G.Yasmin Banu

Reputation: 21

Solved Appservice using Linux for react js service with

image

Upvotes: 0

Doris Lv
Doris Lv

Reputation: 3398

Navigate to the Configuration page of your web app, and add this command to Startup Command :

npx serve -s

enter image description here

Upvotes: 3

Related Questions