Publishing
Publishing to IIS
IIS
- Add the website.
- Right click the website and select "Deploy" and then "Configure Web Deploy Publishing...".
- Enter the following:
- User: “webdeploy”
- Location: “D:\hosting\{site-name}\settings\{site-name}.PublishSettings”
- Click "Setup".
Visual Studio
- Make sure the connection string is set in the "appsettings.json" file.
- Right click the "{project-name}.Web" project in the Solution Explorer and click "Publish".
- Select "Web Server (IIS)" and click "Next".
- Select "Web Deploy" and click "Next".
- Enter the following:
- Server: "kit5web.kontrolit.net"
- Site name: "demo.kontrolit.net" (this must match the name in IIS)
- Destination URL: "https://demo.kontrolit.net"
- User name: "webdeploy"
- Password: *****
- Select "Save password"
- Click “Finish”.
- Finally click the “Publish” button next to your publish profile.
Note: If you would like to rename your publish profile then rename the file in the “Properties/PublishProfiles” folder. For example you may call it “Production.pubxml” if you plan on having different publish profiles.