节点JS部署到Azure Web应用程序服务错误-“您无权查看此目录或页面." [英] Node JS Deployment to Azure Web App Service ERROR - "You do not have permission to view this directory or page."

查看:40
本文介绍了节点JS部署到Azure Web应用程序服务错误-“您无权查看此目录或页面."的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我一直在遵循有关如何将NodeJS应用程序部署到Azure的教程:

  1. 创建一个Web应用.

  1. 使用连续部署.

  1. 删除 .yml 文件.删除此文件夹中的所有文件.

  1. 查看部署状态.

按照我的方式,您将成功部署应用程序.您还可以将生成的

I've been following this tutorial on how to deploy a NodeJS app to Azure:

https://www.youtube.com/watch?v=RWdxkhajCg0&fbclid=IwAR10Q6x8PbqLDAZZzzMX9Nvp_jEGiN_Ts4V8XLJbzF6xreq6_MB_vsbIqx8

Firstly, I did everything exactly the same way as the author showed and it all worked. In the video, they're using Linux Web App Service. Since I have to get familiar with the Windows App Services (that's what I am required to learn and use for my job), I decided to deploy exactly same app to the Windows Web App service. However, instead of the home page, I only saw "You do not have permission to view this directory or page.".

I've already read bunch of solutions online, people suggest adding a web.config file, but it didn't help no matter what I added to that. The app is not supposed to limit any ip addresses/user groups as it's supposed to be a newly deployed app with no access restrictions (just as in the tutorial).

The only hint that I found out is that on Linux it works, on Windows it doesn't.

The app code is here:

https://github.com/Aitemir/MSP005

解决方案

Because you uploaded the code to GitHub, my answer will help you very well. Jay's solution should also be effective, but he uses DevOps. If you are interested, you can also study.

Using Github to deploy web app will be very convenient.

Steps to solve my problem:

  1. Download your source code and upload it to my Github.

  1. Create a web app.

  1. Use continuous deployment.

  1. Delete .yml file. Delete all file in this folder.

  1. View deployment status.

When you follow my way, you will successfully deploy your application. You can also put the generated web.config file in the current application in kudu, which should solve your problem.

这篇关于节点JS部署到Azure Web应用程序服务错误-“您无权查看此目录或页面."的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆