Publishing

Publishing to IIS

IIS

  1. Add the website.
  2. Right click the website and select "Deploy" and then "Configure Web Deploy Publishing...".
  3. Enter the following:
    • User: “webdeploy”
    • Location: “D:\hosting\{site-name}\settings\{site-name}.PublishSettings”
  4. Click "Setup".

Visual Studio

  1. Make sure the connection string is set in the "appsettings.json" file.
  2. Right click the "{project-name}.Web" project in the Solution Explorer and click "Publish".
  3. Select "Web Server (IIS)" and click "Next".
  4. Select "Web Deploy" and click "Next".
  5. 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"
  6. Click “Finish”.
  7. 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.