Do I have to manually rebuild models after pushing to prod using Umbraco Delploy?
m
I have SourceCodeAuto on my local dev and nothing on production for ModelsMode. If I make doctype/template changes local and use Umbarco deploy to push the changes does the new model go with it and like a soft-reboot or something happen so the live environment uses the new model or do I ahve to reboot the live environmet to make the changes acivte (assume I use strongly typed properies in the template code)?
j
With SourceCodeAuto your models should be part of your site dll, so when you push it to live the models will be there already at startup 🙂
m
I am not doing a git push though I am doing an Umbraco Deploy of the doctype/template changes.
j
Oh interesting, in that case I think you would need to update your models manually
m
Interesting? Is this not the proper way to do things? If I am simply making/updating Document Types and templates am I not supposed to do that localy then use Umbraco Deploy (or even uSync) to push those up in order to avoide the 2-5 minutes of downtime that a deploy causes due to site reboot and index rebuilds?
j
The downtime is there for a reason, it ensures your views are compiled, your models are included and that the code can build. Your method will work on a lot of cases, but may also not in others. If you use your modelsbuilder models in code outside the views then that code may fail after pushing a change through deploy and then rebuilding the models.
m
I know that if I am doing things in custom classes or controllers I need to publish. Here I am only talking about updating/creating new Document Types and Templates
2 Views