The dataDirectory property of configuration is ignored?
-
I'm running in to the issue where the
dataDirectory
property is ignored either in *.config.js file or in the command line when specified like so:jsreport start --connectionsString:dataDirectory=/Users/xyz/reports
.
In both cases thedata
directory is created just under the current working directory.
-
according to this https://jsreport.net/learn/configuration#directories-configurations
dataDirectory
is top level configuration not something insideconnectionsString
. try withjsreport start --dataDirectory=/Users/xyz/reports
-
Thank you, will do, I was looking at this:
"connectionString": { "name": "fs", "dataDirectory": "data", "syncModifications": true }
fond here
https://jsreport.net/learn/fs-store
-
probably it works too, try with
jsreport start --connectionString.dataDirectory=/Users/xyz/reports
(you had a typo in your command and you were usingconnectionsString
)
-
The later doesn't work but your earlier comment was correct, it is a top level property, I guess the doc on FS needs to be corrected?
-
ahh ok, maybe there is a problem with this but anyway this should be fixed in v2, and since docs are being updated this will be corrected. thanks