Setup Environment to Deploy to IIS sub application within a website

mark.garcia's Avatar

mark.garcia

25 Apr, 2017 07:27 AM

We have a project that produces 2 artifacts:
CTS.Web
CTS.Admin

CTS.Web deploys normally with our current Environment setup (appveyor) but the admin is create as a sub APPLICATION within CTS.Web website in IIS. How can I deploy both CTS.Web (main website) and CTS.Admin (sub-Application)?

Can I set them up like this in one environment config?

**CTS.Web.site_name** = CTS.Web
**CTS.Web.deploy_website** = true
**CTS.Admin.application_name** = CTS_Admin
**CTS.Admin.application_path** = CTS.Web
**CTS.Admin.deploy_website** = true

  1. Support Staff 1 Posted by Ilya Finkelshte... on 25 Apr, 2017 07:38 AM

    Ilya Finkelshteyn's Avatar

    It looks correct, but I believe you still need to set CTS.Admin.site_name = CTS.Web, otherwise it will be deployed as Virtual Application under Default Web Site.

  2. 2 Posted by mark.garcia on 25 Apr, 2017 07:41 AM

    mark.garcia's Avatar

    Cool, thanks. Will give this a spin.

  3. 3 Posted by mark.garcia on 25 Apr, 2017 07:46 AM

    mark.garcia's Avatar

    By the way, do I still need this line:

    **CTS.Admin.application_path** = CTS.Web

  4. 4 Posted by mark.garcia on 25 Apr, 2017 08:38 AM

    mark.garcia's Avatar

    Sorry , I got this error when I tried.

  5. 5 Posted by mark.garcia on 25 Apr, 2017 08:55 AM

    mark.garcia's Avatar

    This is my environment

  6. 6 Posted by mark.garcia on 25 Apr, 2017 09:04 AM

    mark.garcia's Avatar

    It's fixed now:
    application_path needs to be absolute path to the application directory

    Thanks

  7. 7 Posted by andrew on 01 Jun, 2017 02:19 PM

    andrew's Avatar

    Interesting, do you do any IIS configuration work outside AppVeyor? We tried something similar to this but it didn't work reliably (possibly due to deployment ordering). I got everything working if I configure the app pools and IIS site layout in the configuration stage of the server, then let AppVeyor deploy to existing app pools and created sites.

    Thanks.
    Andrew.

  8. Support Staff 8 Posted by Ilya Finkelshte... on 02 Jun, 2017 10:58 PM

    Ilya Finkelshteyn's Avatar

    @andrew can you provide more details about your configuration and errors you see?

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac