Search code examples
octopus-deploy

Octopus Deploy Settings Javascript SPA


Can someone very familiar with Octopus Deploy tell me whether it is capable of managing settings for non-dot net applications such as JavaScript SPAs. I'm contemplating introducing a fake web.config with corresponding XML to json conversion as a build step, but don't want to do that if there's some other built in means.


Solution

  • If you use tokens like #{OctopusVariable} you can get Octopus to substitute the values in any file.

    You need to enable this using:

    1. Configure Features
    2. Substitute variables in files
    3. Enter YourFileName.json as a Target File

    You can also use conditions:

    #{if MyVar}...#{/if}