Parametrisation for AppVeyor Agent
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?
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
Support Staff 1 Posted by Feodor Fitsner on 23 Feb, 2015 05:41 PM
You can have
deploy.ps1
updatingapp.config
for specific environment: http://www.appveyor.com/docs/deployment/agent#running-powershell-sc...Input parameters could be passed in environment variables.
2 Posted by Thomas Dahlberg on 25 Feb, 2015 12:28 PM
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.
Support Staff 3 Posted by Feodor Fitsner on 25 Feb, 2015 06:27 PM
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 Posted by Thomas Dahlberg on 26 Feb, 2015 08:20 AM
Thanks!
Support Staff 5 Posted by Feodor Fitsner on 27 Feb, 2015 05:33 AM
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 itsapp.config
.Ilya Finkelshteyn closed this discussion on 25 Aug, 2018 01:54 AM.