I'm currently creating a package to deploy my web site in production and I wondered if ModelBuilder had to be enabled in production ?
I'm using it on development to create my model automatically but I'm wondering what would be the added value of having it enabled in production as no one is supposed to modify document types in production.
Are there some advices or something justifying what it would be needed for a production environment ?
While you are developing, what models builder mode are you using?
If you are building and releasing with Models Builder in the PureLive setting, you will need to keep it on. However it isn't recommended to release with PureLive you would be better off considering one of the other options such as Dll.
Personally, I now try and use the API models builder mode which means I generate my Models via a custom tool in Visual Studio. Then when I deploy my site I switch off the API.
Models builder stays enabled just with no mode defined..
I'm using LiveAppData that put the generated class in a separated project that I reference in Umbraco. So I guess I don't need it to be enabled in production, do you confirm?
Yeah, the comment states "for anything else to happen", but I think it's referring to the model generation. When I'm in production, the DLL that contains the model are there and available, they should not get generated, which is why I don't think it should be enabled. All it would say is generate some ".cs" file in the IIS directory for nothing.
Should ModelBuilder be enabled in production?
Hello,
I'm currently creating a package to deploy my web site in production and I wondered if ModelBuilder had to be enabled in production ?
I'm using it on development to create my model automatically but I'm wondering what would be the added value of having it enabled in production as no one is supposed to modify document types in production.
Are there some advices or something justifying what it would be needed for a production environment ?
Thanks
Hi Ssougnez,
While you are developing, what models builder mode are you using?
If you are building and releasing with Models Builder in the PureLive setting, you will need to keep it on. However it isn't recommended to release with PureLive you would be better off considering one of the other options such as Dll.
Personally, I now try and use the API models builder mode which means I generate my Models via a custom tool in Visual Studio. Then when I deploy my site I switch off the API.
Models builder stays enabled just with no mode defined..
Nik
I'm using LiveAppData that put the generated class in a separated project that I reference in Umbraco. So I guess I don't need it to be enabled in production, do you confirm?
Hi Sebastien,
I think it needs to be enabled. Otherwise the models factory does not work.
I usually use the api mode. So it's always set to nothing. And on production environments the api is enabled.
Dave
And look at the source of models builder I think I am correct
https://github.com/zpqrtbnk/Zbu.ModelsBuilder/blob/master/Umbraco.ModelsBuilder/Configuration/Config.cs#L56
Dave
Yeah, the comment states "for anything else to happen", but I think it's referring to the model generation. When I'm in production, the DLL that contains the model are there and available, they should not get generated, which is why I don't think it should be enabled. All it would say is generate some ".cs" file in the IIS directory for nothing.
If I remember correct setting it to disabled broke my website.
But not sure now anymore :-D
I think my advise will be just try it :-D
Dave
is working on a reply...