简体   繁体   中英

Why can't I access my azure website after successfull deployment

I build a website with react and I deployed it on azure. I build it and then deployed the build folder with vs code on azure. The process is actually very easy using vs code and the azure extension. It is explained well here .

So far so good everything worked fine. Now I needed to deploy the same app (the same build folder) but in another webApp. Basically, I needed to have separate versions of the app. So, I did the same things I did the first time (create webapp on azure -> deploy with vs code). However, I can't see my website when I go to the url. All I see is the default generated webapp, which is a dummy html page.

It looks something like this:

Hey, Node developers!

Your app service is up and running.
Time to take the next step and deploy your code.

Does anyone have explanation for this!? I mean I deployed literally the same build folder. I didn't change nothing. I can't see my website (I thought it may take some time but I waited for 9 hours now)

Things I ve tried :

  • deploy again and again
  • restart the app on azure
  • stop and rerun the app on azure
  • go to the url on inkognito mode

I searched a lot and I ve seen some answers that it can be about some path or file in the azure configurations. However, I don't have anything in my configurations! Here are screenshots of my app configurations on azure

  • here is my app configurations (when I go to configurations on azure)

这是我的配置

  • and these are the general configurations/settings

这是一般配置

  • here is the deployment slots:

在此处输入图片说明

I appreciate any help! Thanks in advance.

The message you are getting is the standard message when the app service is created but nothing is deployed.

Possible explainations are:

  • the app is being deployed to a different site
  • the app is being deployed to the same site but a different slot
  • the deployment is failing
  • your application is not listening on the port provided by the PORT environment variable

Recently I got into same issue,

  1. Check you node version in package.json. I used this,
"engines": {
    "node": "^12.16.3"
  }
  1. Azure web service was on Linux server. Startup commnand required in Azure General Settings -> Stack Settings
pm2 serve /home/site/wwwroot --no-daemon

You can also look at the log metrics after deploying or start the service. It will provide you info on the issue.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM