cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Version Control

Highlighted
Newbie

Version Control

Hi,

Does Thingworx have any version control capabilities or what would be the recommended way of backing up different versions of content and restoring?

Thanks.

9 REPLIES 9
Highlighted

Version Control

Hi Victor,

I don't know they we've settled on a recommended method of putting ThingWorx applications under source control, but we've introduced functionality in 5.0 to make this possible. From Composer,

Import/Export

 →

Source Control Entities

. This functionality is similar to a standard export, however it will create directories for each entity type (e.g.

Things

,

ThingTemplates

, etc.) and a file for each entity. The files are exported to a

FileRepository

 and from there, you'll need to decide how you want to get them into a version control system.


Regards,

Adam



Highlighted

Version Control

Hi Adam,

I'm using version 5.0, but I don't see the option "Source Control Entities". The options I have are the "To File" and "To ThingworxStorage". Do I need to import an extension to see this option?

Highlighted

Version Control

Victor,

Are you using a 5.0 SP2? I've confirmed this menu item is available in 5.0 SP2. If you're unable to upgrade at the moment, you can access this functionality as Services (available from the Snippets tab under SourceControlFunctions) to programmatically export entities for source control.

Highlighted

Version Control

I recommend you upgrade to SP2 which has this available from the menu.

In the 5.x pre SP2 versions, you can find this as a Service in Resources/Source Control Functions. There are two services there, export source controlled entities and as a zip.

Highlighted

Version Control

Hi Adam and Pai,

Thanks for your response, I must not have SP2, which is why I don't see it in the menu. I did find it under the SourceControlFunctions like you've both mentioned and it appears to be working that way.

Thanks again!

Highlighted

Re: Version Control

Since we are now at version 7.1, is the strategy mentioned above still the recommended one, or is there another approach?

Highlighted

Re: Version Control

Todd, 'Export to ThingworxStorage' would be your best option (with checking 'Include Data'). That would create an export under ThingworxStorage\exports\YYYY-MM-DD-TIME with your entities and data. Entities that use the persistence provider, like Streams, ValueStreams, DataTables etc. will have their own individual folder as well.

Highlighted

Re: Version Control

we have been using TW 6 and we want maintain TW code (services code) into version control.Could you please help us.

Highlighted

Re: Version Control

ThingWorx Applications Version Controlling with SVN can be done by using attached document.

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum!