Seldom do you come across movie that makes you think and by think I mean ‘soul searching’. Well October does just that! It makes you laugh at a near death experience. Holds your hand and tags you…
To deploy a NestJS application to Windows IIS (Internet Information Services), you’ll need to follow these general steps:
Make sure you have built your NestJS application using the npm run build
command.
So, we can copy the package.json
file to the dist
folder and then run a npm install
command inside the build(dist) folder.
To do so, lets open the package.json
of your project and then add following scripts under the scripts
section.
Now, build your NestJS application using the npm run build
command.
Open the Internet Information Services (IIS) Manager on your Windows server.
Create a new website or select an existing one where you want to deploy your NestJS app.
Ensure that the website is configured to use the appropriate .NET CLR version (typically v4.0) and the correct pipeline mode (Integrated).
In your NestJS application’s root folder, create a web.config
file.
Open the web.config
file and add the following configuration:
Copy the contents of the dist
folder generated during the NestJS build process into the directory of your website in IIS.
Ensure that the main.js
file and the web.config
file are in the same directory.
Restart the IIS server to apply the changes.
Now, your NestJS application should be deployed and accessible through IIS. You can access it by navigating to the appropriate URL in a web browser.
The first draft is only the beginning.
Businesses today are not wanting to be left behind without a rewards program. The number of programs in the market is surging so fast that it appears to be becoming a rat race showing no symptoms of…
Try listening to books instead of reading them if you enjoy reading but don’t have much time to do so. An Amazon firm called Audible sells and creates spoken audio material. Although Audible offers a…