Just mastering the release process and after some advice on the best way to acheive this?
I want to get a text file into the root of my website with the release version number in. The idea behind this is to be able to see the version of the site that is in use as we run a blue green setup.
I want to be able to browse to mydomain.com/version.txt and see what version (as well as possibly some other info) is currently live.
Thanks for getting in touch! You could add a script step to your process, using some PowerShell to create the text file. Within it, you can add the content you need using the system variableOctopus.Release.Number within it. Something like the following (using variable substitution syntax):
That’s awesome to hear it works for you! You’re very welcome, and please don’t hesitate to reach out if you have any further questions or concerns moving forward.