Ruben Verschueren
Ruben Verschueren

Reputation: 842

how to synchronise a folder in a Web app with the website?

I'm getting into Kentico development and I'm playing around with the continuous integration.

I have separated my VS solution from the website folder and publish my changes from the web application to the website.

however the CI system in Kentico saves it's serialized items in the /CMS/App_Data/CIRepository folder in the website.

So I need a way to easily get the changes in that folder back into my VS solution, so I can check them in to my source control.

In other words a folder that is synched between the website and VS web application. what would be the best approach for this?

Upvotes: 1

Views: 171

Answers (2)

Ruben Verschueren
Ruben Verschueren

Reputation: 842

Here's what I came up with. a new/second developer can install an empty site. Then create a symbolic link folder in his site pointing to the CIRepository folder that is inside the solution folder (which is under source control).

mklink /d D:\Sites\KenticoReferenceQA\CMS\App_Data\CIRepository D:\Projects\KenticoReferenceQA\CMS\App_Data\CIRepository

This will create the CIRepostory folder in you website folder, now any changes made in this folder is mirrored in the project folder and detected by Visual Studio and your source control of choice.

I have also added a post build script that triggers the powershell script to run continuous integration in the website. this will then update the website when you build.

Upvotes: 0

Brenden Kehren
Brenden Kehren

Reputation: 6117

You should NOT have CI running on your live, qa or staging sites. CI is for multiple developers working in their own local environment not a shared instance which can be accessed by others.

So for your case I'd suggest turning off CI on the server. You may also, if it's a physical server install your repo tools and commit and restore your files but it's not how it was meant to work.

Upvotes: 1

Related Questions