Parametrisation for AppVeyor Agent

Thomas Dahlberg's Avatar

Thomas Dahlberg

23 Feb, 2015 03:23 PM

I am deploying a console-application (and later on a service) to a windows 2012 server using AppVeyor Agent. So far so good.

But I am going to deploy the same application to several environments and would like to change som parameters in an App.Config file. Is that possible?

  1. Support Staff 1 Posted by Feodor Fitsner on 23 Feb, 2015 05:41 PM

    Feodor Fitsner's Avatar

    You can have deploy.ps1 updating app.config for specific environment: http://www.appveyor.com/docs/deployment/agent#running-powershell-sc...

    Input parameters could be passed in environment variables.

  2. 2 Posted by Thomas Dahlberg on 25 Feb, 2015 12:28 PM

    Thomas Dahlberg's Avatar

    Is it possible when installing service as well? I tried and it looked like it replaced the variables after it tried to install and start the service.

  3. Support Staff 3 Posted by Feodor Fitsner on 25 Feb, 2015 06:27 PM

    Feodor Fitsner's Avatar

    Yeah, this could be an issue with Windows service. Looks like it should call deploy.ps1 before the service started. Will publish updated Deployment Agent today.

  4. 4 Posted by Thomas Dahlberg on 26 Feb, 2015 08:20 AM

    Thomas Dahlberg's Avatar

    Thanks!

  5. Support Staff 5 Posted by Feodor Fitsner on 27 Feb, 2015 05:33 AM

    Feodor Fitsner's Avatar

    Hi Thomas,

    We've deployed an update to Deployment Agent:
    http://www.appveyor.com/downloads/AppveyorDeploymentAgent.msi

    deploy.ps1 is now being run before service is started, so you have an ability to update its app.config.

  6. Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.

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

 

01 Oct, 2024 04:27 PM
26 Sep, 2024 03:49 PM
26 Sep, 2024 09:02 AM
25 Sep, 2024 07:07 PM
24 Sep, 2024 08:39 PM
24 Sep, 2024 06:47 AM