Hi,
We're building our first Umbraco project using Umbraco Cloud. Our initial approach was to have a shared database between the developers but now we've reached the point that it comes with to much problems, so now we think of switching to local database instances instead.
What is the best approach to handle developer specific web.configs?
I think I got the web.config transforms in Umbraco Cloud figured out already. The question is more regarding the local environment. Can I use transforms there as well in a smart way?
Developer 1 needs a unique connection string, Developer 2 needs a unique connection string and so on...
Hey Jonas, if I remember correct you can also have a tranform file with the computer name, so each dev can have it's own connection string... (if computer names are unique)
hmm think these kick in on build... it used to work in the past but been a while since I've used them... so you basicly have a web.computername.config with the transform per dev
Different local web.config for developers
Hi, We're building our first Umbraco project using Umbraco Cloud. Our initial approach was to have a shared database between the developers but now we've reached the point that it comes with to much problems, so now we think of switching to local database instances instead.
What is the best approach to handle developer specific web.configs?
Thanks!
Hi Jonas
If you want some values to be different in your web.config file on Umbraco Cloud depending on which environment you are on
Then you shold look into web.config transforms
https://our.umbraco.com/documentation/Umbraco-Cloud/Set-Up/Config-Transforms/
Hope this helps
/Dennis
Hi Dennis, thanks for your reply.
I think I got the web.config transforms in Umbraco Cloud figured out already. The question is more regarding the local environment. Can I use transforms there as well in a smart way?
Developer 1 needs a unique connection string, Developer 2 needs a unique connection string and so on...
Comment author was deleted
Hey Jonas, if I remember correct you can also have a tranform file with the computer name, so each dev can have it's own connection string... (if computer names are unique)
Hi! But these transforms doesn't kick in until publish right? I would like it to be done on build.
For clarification. This is a standard umbraco cloud setup. An "old" website project and not a Web Application.
Comment author was deleted
hmm think these kick in on build... it used to work in the past but been a while since I've used them... so you basicly have a web.computername.config with the transform per dev
Can't get that to work unfortunately.
Did you get this to work ?:)
is working on a reply...