I want to create an asar
file (I want to install my total.js
web app in client pc, so I want to package with electron like an asar file) I need to redirect every directories have dynamic files like databases\files-binary
.
So, how can I do that? I have some parameter in config file?
You can't change default path where the files are saved.
You can:
var nosql = DB.load('/path/to/database/file.nosql');
see docs https://docs.totaljs.com/latest/en.html#api~Databaseoverwrite
Framework.prototype.nosql
to allow you to use different path that you define in configChange the above code to fit your needs.
Now you can use nosql just like you would normaly do: