![]() Now, right-click on Sites and click on "Add web sites". This is required because Windows Azure App Service uses iisnodeto host Node.js applications in IIS on Windows To run a Node.js application on Windows, follow these three steps. ![]() Node.jsĀ® is a JavaScript runtime built on Chrome's V8 JavaScript engine. You may use any text editor of your choice to create a script file with extension. Now, right-click on Demo and click on "Add Application". The guide is intended for development, and not for a production deployment. Make sure to restart your Node.js application if it was already running to apply the changes. In the end, the boilerplate server code should look something like this: Here we import the certificate files into an object on lines 7-11, then pass this object to the createServer method on line 13 which creates the HTTPS server, and finally call the listen() method on line 19 to start the server. You'll need to open a new terminal (command prompt) for the node and npm command-line tools to be on your PATH. The best practices in this article assume that you have: Node.js and npm installed. Basically, to "deploy" an application, you would typically send the files over to the server and run it from the commandline: node server.js There is no web server involved like Apache or nginx.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |