Requirements:
- Finished the Run and Debug the app tutorial
- Cloudflare + your Domain setup
I’ll be deploying the vue2.saasfrontends.com website.
Step 1: Install .NET Hosting Bundle
Go to the .NET downloads website and install the ASP.NET Core Runtime Hosting Bundle:
![.NET Core Runtime](/_next/static/media/net-core-runtime.0f5adfdb790c6fcae0aa88d410535a6c.png)
Step 2: Create IIS Website
Open the IIS Manager and create the application.
![Publish to Folder Configuration Details](/_next/static/media/iis-add-website.e675927741042288807c848262dd6915.png)
These were my website details:
![Publish to Folder Configuration Details](/_next/static/media/iis-add-website-details.ec2146bdd9894650d5f0b42296035f00.png)
Step 3: Publish
If it doesn’t exist, create the following configuration on Rider or Visual Studio.
![Publish to Folder Configuration Details](/_next/static/media/configuration-publish-to-folder-details.b00aa884c38ed9eb593efaec6496772a.png)
Then click the Run button.
![Publish to Folder Configuration Details](/_next/static/media/configuration-publish-to-folder.c4e69f4ef820c898a4ccdb7eeadc0161.png)
You should get the following output:
3> INFO Check out deployment instructions at https://cli.vuejs.org/guide/deployment.html
3>
3>NetcoreSaas.WebApi -> /Users/.../bin/Release/net5.0/publish/
Compress the created folder (/publish), move it to the IIS website folder, and run the website:
![Localhost](/_next/static/media/localhost.a54980a57c34db954043072620c31837.png)
Step 4: Configure SSL for https
Follow this tutorial to configure Cloudflare SSL and IIS:
https://bytefreaks.net/applications/cloudflare-origin-server-certificate-for-iis-10-server-on-windows-server-2016-to-allow-full-strict-mode-ssl-tls-encryption-mode—
Please let me know if you have any questions.