[英]web.config to run dist folder deployed on azure app service via FTP
I am using Vue CLI project and wants to deploy the dist folder to Azure App Service via FTP but I am missing with web.config file to run my deployed app service.我正在使用 Vue CLI 项目并希望通过 FTP 将 dist 文件夹部署到 Azure 应用服务,但我缺少 web.config 文件来运行我部署的 app 服务。
I am trying to do this answer but can't find a web.config file for my reference.我正在尝试回答这个问题,但找不到 web.config 文件供我参考。
Thanks in advance for your answers.提前感谢您的回答。
FTP deployment doesn't support build automation like: FTP 部署不支持构建自动化,例如:
Generate these necessary files manually on your local machine, and then deploy them together with your app.在本地机器上手动生成这些必要的文件,然后将它们与您的应用程序一起部署。
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<rewrite>
<rules>
<rule name="Handle History Mode and custom 404/500" stopProcessing="true">
<match url="(.*)" />
<conditions logicalGrouping="MatchAll">
<add input="{REQUEST_FILENAME}" matchType="IsFile" negate="true" />
<add input="{REQUEST_FILENAME}" matchType="IsDirectory" negate="true" />
</conditions>
<action type="Rewrite" url="/" />
</rule>
</rules>
</rewrite>
</system.webServer>
</configuration>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.