Deployment, continous integration and Models builder
Hi all,
I really need some help to understund this.
I am using Azure DevOps for deployment and I am not sure if I am doing it on right way. Sometimes when I push new changes, my website is not working so usually I do some steps like deleting cache and TEMP file from App_Data folder, than I reload memory cache etc. and finally my app start working again.
Soon this application will go to procudtion and i want to be sure that I am doing it right.
I have installed uSync so I can synchronize future changes on document types.
I have enabled AppData models builder and I have included generated models to the project for deployment.
I dont know is that good way to deploy models builder changes, should I exclude this generated models and use only uSync, because when i deploy this way and when i check models builder tab on production server i can see message: Models are out-of-date.
A great solution I've found was to include the usync folder in the publish from VS. The setup in usync is export everything except for content and media refs, I tried to enable export on startup on my dev but it really slowed things down. Before publish to target I manually export in usync. Then on the target machine enable auto import on startup and publish from VS to target. The first time you load the site after publish everything from dev that was exported (doc types, data types, media types, member types etc) will be imported to your target automatically.
And then running models builder LiveAppData to build .cs files to app data to get strongly typed models
Just to say, you can run uSync in ExportOnSave mode (its on by default) and then it will save changes to disk when you save items in Umbraco. then you don't need to do a full export before you do a manual export before any deployment.
Also if you install uSync from nuget it should add 'target' properties to the visual studio project that mean when you 'publish' or use WebDeploy the uSync folders are included (Umbraco does the same thing to include the Umbraco & Umbraco_Client folders).
Deployment, continous integration and Models builder
Hi all,
I really need some help to understund this.
I am using Azure DevOps for deployment and I am not sure if I am doing it on right way. Sometimes when I push new changes, my website is not working so usually I do some steps like deleting cache and TEMP file from App_Data folder, than I reload memory cache etc. and finally my app start working again.
Soon this application will go to procudtion and i want to be sure that I am doing it right.
I have installed uSync so I can synchronize future changes on document types.
I have enabled AppData models builder and I have included generated models to the project for deployment.
I dont know is that good way to deploy models builder changes, should I exclude this generated models and use only uSync, because when i deploy this way and when i check models builder tab on production server i can see message: Models are out-of-date.
Thanks
Hi Josip
It's been a while since you posted this question, did you find the best way to deploy changes and Models Builder? Can you share with our community?
Thanks, Alex
A great solution I've found was to include the usync folder in the publish from VS. The setup in usync is export everything except for content and media refs, I tried to enable export on startup on my dev but it really slowed things down. Before publish to target I manually export in usync. Then on the target machine enable auto import on startup and publish from VS to target. The first time you load the site after publish everything from dev that was exported (doc types, data types, media types, member types etc) will be imported to your target automatically.
And then running models builder LiveAppData to build .cs files to app data to get strongly typed models
Hi,
Just to say, you can run uSync in ExportOnSave mode (its on by default) and then it will save changes to disk when you save items in Umbraco. then you don't need to do a full export before you do a manual export before any deployment.
Also if you install uSync from nuget it should add 'target' properties to the visual studio project that mean when you 'publish' or use WebDeploy the uSync folders are included (Umbraco does the same thing to include the Umbraco & Umbraco_Client folders).
is working on a reply...