Hello,
I’m deploying an application in Octopus 2.0 using the “IIS website and application pool”, which deploys each release to a different folder on the web server, and then “switches over” all the IIS settings for the website to point to to the new directory.
I have a subsequent step in the deployment process that needs to copy some files to the directory of the web site above. Is there a way to get a reference to the folder to which the web site was deployed in this subsequent step?
Hi,
Right now, no - you’d need to change the first step to use the Custom Installation Directory feature to deploy the application to a fixed directory (e.g., C:\Sites\YourSite\#{Octopus.Release.Number}
), and then use the same location in the subsequent step.
In Octopus 2.4, we’ll make a special variable available that you can use to reference this, so it won’t be a problem anymore.
Paul
Thanks Paul - actually using a dynamic directory based on the release number serves my purpose just as well.