Possible to use a different appdata directory?



  • So i have the following tree structure.

    • projectData/
    • jsReport/
      **/logs/
      **/node_modules/
      **/data/
      ****** /samples/Invoice
      ******/samples/Orders

    When i start the server, the appData folder uses the jsreport/data/Sample as the root.
    Do note that when i start the JSReport studio i start it from jsReport/
    Is it possible so that when i do npm start for JSReport to read from projectData (for that to be the rootdirectory) and not jsReport/data. i have used the "rootDirectory" property on jsreport.config.json but it doesnt seem to do what i want it todo.

    Thanks



  • You can configure jsreport to load templates from specific folder using this config

    { 
      "extensions": {
        "fs-store": {
          "dataDirectory": "../projectData"
        } 
    }
    

    Is this what you are looking for?



  • Thanks I'll try it


Log in to reply
 

Looks like your connection to jsreport forum was lost, please wait while we try to reconnect.