Try our conversational search powered by Generative AI!

Best way to handle different license.config?

Vote:
 

I am working with a solution that is going to be hosted in three environments(sites) in Azure and also on the developers local computers and I do not know the best way to handle different license.config for different environments where there are not possible to name them by the name of the server. I need one for development and one that are used on the three Azure-sites.

Anyone else figured out this?

#133340
Sep 02, 2015 10:31
Vote:
 

I ended up using SlowCheetah again since it is still working in VS2015, read more here: 

https://visualstudiogallery.msdn.microsoft.com/69023d00-a4f9-4a34-a6cd-7e854ba318b5

#133352
Sep 02, 2015 12:17
Vote:
 
<p>I also use Slowcheetah but not for the license. Will try that. Thanks</p>
#133366
Sep 02, 2015 22:52
Vote:
 
<episerver>
  <sites>
    <site licenseFilePath="...">

Use ordinary config files transformations available during MSBuild.

We actually delgated this to either TeamCity or Octopus server.

#133388
Sep 03, 2015 11:27
Vote:
 

We use standard VS transformnations for this purpose.
Regards

/K

#133392
Sep 03, 2015 12:04
Vote:
 
<p>Thanks Valdis, that setting was new to me!</p>
#133407
Sep 03, 2015 14:24
Vote:
 

On second thoughts, arent those settings gone in the latest versions of EPi?

#133409
Sep 03, 2015 14:49
Vote:
 

We have a separate part of our solutino containing "Deployment Items", which can include things like robots.txt for different environments, license files or other environment specific non-config files.

And then we're just doing some powershell magic from our Octopus deploy-server to put the right stuff in based on the environment it's released to. Can also be further generalized to be either for each specific server, or for all servers within an environment.

It's pretty nifty.

#133412
Sep 03, 2015 15:33
Vote:
 

Valdis

Is your apporach working in EPi7.5 and above? From my memory, the site section has been removed from configuration in EPi7.5+

We use the publishing profile instead of standard transformtion to transform the license path based upon different environment. Basically, we include all environment license files in the solution.  when our CI (we used Bamboo) kicks off build, it will create a package on the server, so that once build is successful, we can make sure the same code will be deployed to STAGE,UAT and PROD etc.

The license path can be found in EpiServerFramework.config file. 

<episerver.framework>
  <scanAssembly forceBinFolderScan="true" />
  <licensing licenseFilePath="./License.config" />
......
</episerver.framework>
#133419
Sep 04, 2015 2:03
Vote:
 

Yes, you are right, license path now is moved to its own element under <episerver.framework>.

http://world.episerver.com/documentation/Items/Developers-Guide/EPiServer-CMS/8/Configuration/Configuring-episerverframework/#licensing

#133421
Edited, Sep 04, 2015 8:20
Vote:
 
<p>Thanks everyone, always nice to learn new stuff</p>
#133422
Sep 04, 2015 8:38
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.