Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Poke Xml Files (e.g. web.config) and change values when needed (say deployment) #167

Open
jssingh opened this issue Aug 26, 2011 · 4 comments

Comments

@jssingh
Copy link

jssingh commented Aug 26, 2011

When deploying code and using web.config for configuration, it is needed to change App Settings for multiple environments.

@mxriverlynn
Copy link
Owner

I've never been a fan of xml poke for this purpose. i prefer to use a template for my web.config and generate the file for each of the environments... there used to be an expandtemplates task for this purpose but it was pretty awful. with erb bing built into ruby and the availability of erubis, haml, slim, etc, it's a better idea to use one of them to process templates.

there's an example of building your own albacore task to do this in the wiki: https://github.com/derickbailey/Albacore/wiki/Custom-Tasks

otherwise - contributions are welcome. pull requests are accepted :)

@jssingh
Copy link
Author

jssingh commented Aug 26, 2011

hey Derrick, thanks for the response. I will check it out. I certainly like templating better myself vs acting sneaky :)

@haf
Copy link
Collaborator

haf commented Jan 31, 2012

I think it would be nice to have an erb task. In fact, I have written one from Derick's sample. I'll try to add it to dev.

@mxriverlynn
Copy link
Owner

this was sort of re-added in the "output" task. you might want to check that to see if it's going to be good enough.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants