Static GitHub Issues

[393] Nuxt on IISNode

prev: there is a problem for help
next: Allow nuxt build command to choice config file

This is going to be a long shot, I know. However, I am trying to run a Nuxt application on IISNode. The way IISNode works, from my limited time researching and implementing it, is I need to tell IISNode the entry point Node file to start from. For instance:

<configuration>
    <system.webServer>
        <handlers><add name="iisnode" path="hello.js" verb="*" modules="iisnode" /></handlers>
    </system.webServer>
</configuration>

This tells IISNode to start at the hello.js file. If my hello.js file had the following in it:

var http = require('http');
http.createServer(function (req, res) {
    res.writeHead(200, {'Content-Type': 'text/plain'});
    res.end('Hello, world! [helloworld sample;  node version is ' + process.version + ']');
}).listen(process.env.PORT);  

I would see the "Hello, world! helloworld sample; node version is 6.1.0" in the browser when I navigate to the site.

I'm trying to understand how to translate running nuxt build and nuxt start over to this method of running Node apps on IIS. I know running nuxt start starts a server listening on 3000. I'm trying to understand if I should be able to set the <add name="iisnode" path="hello.js" verb="*" modules="iisnode" /> path to a root js file that is ran.

Any discussion, comments, or solution is more than welcome! This could be beneficial for those individuals who are restricted to a windows environment who want to build with nuxt.js! :)

Thanks!

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c340">#c340</a>)</em></sub></div>