Skip to main content
1-Visitor
January 21, 2017
Question

Create a custom file repository in thingworx

  • January 21, 2017
  • 15 replies
  • 7823 views

Hi,

 

Whenever we create FileRepository thing, it is always creating in /ThingworxStorage/repository. I want to customize this folder location, Please help.

15 replies

1-Visitor
January 22, 2017

Hello Thangavel Ayyasamy​,

Since version 7.0 Thingworx allows to customize location of your Thingworx Repositories. All you need to do, is to create a folder named ThingworxPlatform in the root of your Tomcat/Thingworx installation (e.g. if your Tomcat is installed in C:\Program Files\..., you should create a folder: C:\ThingworxPlatform and so on).

There you should create a file named platform-settings.json. Inside you can put a various configurations for your Thingworx Platform, also for the File Repository root location. The configuration should be in JSON format. The minimal necessary configuration for your task would be:

{

    "PlatformSettingsConfig": {

          "BasicSettings": {

              "FileRepositoryRoot": "<new_repository_root"

          }

    }

}

For another possible configurations and the general information, please refer to the Help Center: Digital Media Publisher and Thingworx Installation guilde.

Please note, that all necessary read/write permissions needs to be granted to the location specified. Otherwise your Thingworx won't startup properly.

Hope it helps, don't hesitate to ask for further assistance.

Regards,

J.

1-Visitor
August 15, 2018

Hi J.,

I did that and it creates a folder repository in the path but Thingworx do not recognize it when running services. Are there any other step after that? It is still looking to ThingworxStorage folder.

 

Thanks!

Felipe Duarte

1-Visitor
August 18, 2018

Just to try, if you want to set it out of ThingWorx Storage, you may try with ../../../....... whatever

16-Pearl
September 4, 2018

i tried providing storage & backupStorage folder location in platform-settings.json file as below

 

"PlatformSettingsConfig": {
"BasicSettings": {
"BackupStorage": "D:/teststorage/ThingworxBackupStorage",
"Storage": "D:/teststorage/ThingworxStorage"
}

 

doing this creates a ThingworxStorage & ThingworxBackupStorage both folders in mentioned location

now moving to composer i created filerepository testthing. exported this file using repository as SystemRepository, files gets exported to D:\teststorage\ThingworxStorage\repository\SystemRepository

that means ThingWorx is reading the mentioned location.