Setup Environment to Deploy to IIS sub application within a website
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
Comments are currently closed for this discussion. You can start a new one.
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
1 Posted by Ilya Finkelshte... on 25 Apr, 2017 07:38 AM
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 Posted by mark.garcia on 25 Apr, 2017 07:41 AM
Cool, thanks. Will give this a spin.
3 Posted by mark.garcia on 25 Apr, 2017 07:46 AM
By the way, do I still need this line:
**CTS.Admin.application_path** = CTS.Web
4 Posted by mark.garcia on 25 Apr, 2017 08:38 AM
Sorry , I got this error when I tried.
5 Posted by mark.garcia on 25 Apr, 2017 08:55 AM
This is my environment
6 Posted by mark.garcia on 25 Apr, 2017 09:04 AM
It's fixed now:
application_path needs to be absolute path to the application directory
Thanks
7 Posted by andrew on 01 Jun, 2017 02:19 PM
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 Posted by Ilya Finkelshte... on 02 Jun, 2017 10:58 PM
@andrew can you provide more details about your configuration and errors you see?
Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 02:17 AM.