How to deploy a Node.js application on IIS Windows Server (2024)

This tutorial will guide you through the process of deploying a Node.js application to IIS Web Server using Advanced Installer.

  • 1. Add the resource files
  • 2. Create the application on the IIS page
  • 3. Create the Application Pool
  • 4. Enable the required IIS Windows Features
  • 5. Launch the application at the end of the installation process
  • 6. Video Tutorials
    • 6.1 Installing a Node.js web app
    • 6.2 Installing a Node.js web app as a Windows service
  • 7. Conclusion

Before proceeding with the deployment steps below, make sure you have specified a Base URL for your application and meet the following prerequisites:

  • Node.Js on the Windows machine where you want to publish your application.
  • IISnode module to enable hosting of Node.js applications.
  • URL Rewrite module to ensure the application handles all the requests properly.
  • The web.config file that includes the configuration settings for iisnode and URL Rewrite.
  • The file should be placed in the root directory of the application you want to publish.

How to deploy a Node.js application on IIS Windows Server (1)The following article uses options that are available starting with the Professional edition and project type.

1. Add the resource files

The initial step in generating the installation packages is to add the application resources - the files in the root folder of the application.

Since the content of this folder can undergo modifications during the development phase, it becomes quite challenging to keep track of which files need to be included or excluded in the Advanced Installer project.

However, there's a solution to this - you can make use of the folder synchronization feature offered by Advanced Installer to automate this task.

Go to the Files and Folders page and create a regular folder in the Application Folder view. Then, synchronize the created folder with the root folder of the application.

How to deploy a Node.js application on IIS Windows Server (2)

2. Create the application on the IIS page

Once the resources are added to the project, you have to create the application. To achieve this, follow the next steps:

  • Go to the IIS view
  • Use the [ New Web Application ] toolbar button to create a new application.
  • From the opened dialogue, select the folder previously created in the Application Folder view as Installation Folder.

How to deploy a Node.js application on IIS Windows Server (3)

3. Create the Application Pool

To make sure your application runs as expected, it is recommended that it run under its own application pool instead of the Default App Pool. To create an application pool, go to IIS view and use the [ New Application Pool ] toolbar button. Once created, follow the next steps to use it for your web application:

  • Go to the application → Application Pool tab.
  • Enable Use installed application pool and select the created pool.

How to deploy a Node.js application on IIS Windows Server (4)

4. Enable the required IIS Windows Features

To enable the required IIS features, use a Windows Feature Bundle. To add one, go to the Prerequisites view of Advanced Installer and simply use the [New Windows Feature Bundle] toolbar button.

How to deploy a Node.js application on IIS Windows Server (5)

How to deploy a Node.js application on IIS Windows Server (6)An IIS launch condition is automatically created in the Software tab of the Launch Condition page when a new application is created in the Advanced Installer project. It is safe to remove the software launch condition because we made sure that IIS is enabled on the target computer using Windows Features.

5. Launch the application at the end of the installation process

If you want to launch the application in a browser at the end of the installation process, follow the next steps:

  • Go to the Custom Actions view.
  • In the Add Custom Action section select the Open URL custom action.
  • Provide the URL and check only the Install option under Execution Stage Condition.
  • Place the Open URL custom action at the end of the Install Execution Stage.

How to deploy a Node.js application on IIS Windows Server (7)

6. Video Tutorials

The following video tutorials can help you configure an installer for your Node.js web app.

6.1 Installing a Node.js web app

6.2 Installing a Node.js web app as a Windows service

7. Conclusion

We hope this article helped you publish your Node.js application to IIS. Let us know if there's any other topic you'd like us to address.

How to deploy a Node.js application on IIS Windows Server (2024)
Top Articles
Super Mario Bros. 2
What to know about civilians in war amid Ukraine conflict
Automated refuse, recycling for most residences; schedule announced | Lehigh Valley Press
NOAA: National Oceanic & Atmospheric Administration hiring NOAA Commissioned Officer: Inter-Service Transfer in Spokane Valley, WA | LinkedIn
Frases para un bendecido domingo: llena tu día con palabras de gratitud y esperanza - Blogfrases
Swimgs Yuzzle Wuzzle Yups Wits Sadie Plant Tune 3 Tabs Winnie The Pooh Halloween Bob The Builder Christmas Autumns Cow Dog Pig Tim Cook’s Birthday Buff Work It Out Wombats Pineview Playtime Chronicles Day Of The Dead The Alpha Baa Baa Twinkle
Somboun Asian Market
Was ist ein Crawler? | Finde es jetzt raus! | OMT-Lexikon
Craigslist Cars Augusta Ga
How Many Cc's Is A 96 Cubic Inch Engine
Yi Asian Chinese Union
Tugboat Information
OnTrigger Enter, Exit ...
Jet Ski Rental Conneaut Lake Pa
Caliber Collision Burnsville
Fairy Liquid Near Me
Dc Gas Login
Panorama Charter Portal
Busby, FM - Demu 1-3 - The Demu Trilogy - PDF Free Download
Fraction Button On Ti-84 Plus Ce
Is The Yankees Game Postponed Tonight
The BEST Soft and Chewy Sugar Cookie Recipe
The Many Faces of the Craigslist Killer
48 Oz Equals How Many Quarts
Delectable Birthday Dyes
Hesburgh Library Catalog
As families searched, a Texas medical school cut up their loved ones
Salemhex ticket show3
The Latest: Trump addresses apparent assassination attempt on X
EST to IST Converter - Time Zone Tool
Craigslist Org Sf
Craigslist Neworleans
Drabcoplex Fishing Lure
American Bully Xxl Black Panther
House Of Budz Michigan
Chuze Fitness La Verne Reviews
Enjoy4Fun Uno
20 Best Things to Do in Thousand Oaks, CA - Travel Lens
Directions To Advance Auto
Adam Bartley Net Worth
WorldAccount | Data Protection
Craigslist Boats Dallas
The Largest Banks - ​​How to Transfer Money With Only Card Number and CVV (2024)
Amc.santa Anita
6576771660
Ehome America Coupon Code
Citizens Bank Park - Clio
Hawkview Retreat Pa Cost
Craigslist Sparta Nj
Plasma Donation Greensburg Pa
Jeep Forum Cj
Ics 400 Test Answers 2022
Latest Posts
Article information

Author: Catherine Tremblay

Last Updated:

Views: 6520

Rating: 4.7 / 5 (47 voted)

Reviews: 94% of readers found this page helpful

Author information

Name: Catherine Tremblay

Birthday: 1999-09-23

Address: Suite 461 73643 Sherril Loaf, Dickinsonland, AZ 47941-2379

Phone: +2678139151039

Job: International Administration Supervisor

Hobby: Dowsing, Snowboarding, Rowing, Beekeeping, Calligraphy, Shooting, Air sports

Introduction: My name is Catherine Tremblay, I am a precious, perfect, tasty, enthusiastic, inexpensive, vast, kind person who loves writing and wants to share my knowledge and understanding with you.