小编Osw*_*man的帖子

如何使用 IIS 部署 Nuxt

我想在 IIS 中部署 Nuxt,我正在使用 IIS Node,但我无法让它工作...... 文件夹

我可以在我的服务器中使用 npm run start 来完成它,但我还有其他项目,例如 admin y api (.net) 并且它使用端口 80,所以当我使用端口 80 时它很忙,而在 IIS 中它使用此结构 文件夹 IIS

这是我在 web.config 中的代码

<?xml version="1.0" encoding="utf-8"?>
<!--
     This configuration file is required if iisnode is used to run node processes behind
     IIS or IIS Express.  For more information, visit:

     https://github.com/tjanczuk/iisnode/blob/master/src/samples/configuration/web.config
-->

<configuration>
  <system.webServer>
    <!-- Visit http://blogs.msdn.com/b/windowsazure/archive/2013/11/14/introduction-to-websockets-on-windows-azure-web-sites.aspx for more information on WebSocket support -->
    <webSocket enabled="false" />
    <handlers>
      <!-- Indicates that the server.js file is a node.js site to be …
Run Code Online (Sandbox Code Playgroud)

iis iisnode vue.js nuxt.js

5
推荐指数
1
解决办法
1万
查看次数

标签 统计

iis ×1

iisnode ×1

nuxt.js ×1

vue.js ×1