-
I read in Classic Trilium's FAQ (https://github.com/zadam/trilium/wiki/FAQ) that the data dir can be changed like so: As TriliumNext seems to be started by It's still starting with the message: I let it start all the way to see if maybe the message was inaccurate, but it appears it really is using ./data. I also tried putting a new value for TRILIUM_DATA_DIR in .bashrc, to no avail. Just to see what would happen, I tried setting a value Any help would be much appreciated. Thank you! |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi, looking at
which means that the environment variables are overwritten. The documented TRILIUM_DATA_DIR and TRILIUM_PORT are working on the compiled electron apps or the docker containers, where the launcher does not overwrite the information. I use it that way personally and it works pretty well. If you want to run the application with |
Beta Was this translation helpful? Give feedback.
-
@capi Many thanks! For anybody else who has the notion to run both classic and next on the same database but at different ports, don't forget to add |
Beta Was this translation helpful? Give feedback.
Hi, looking at
package.json
, thenpm run start-server
is defined aswhich means that the environment variables are overwritten.
The documented TRILIUM_DATA_DIR and TRILIUM_PORT are working on the compiled electron apps or the docker containers, where the launcher does not overwrite the information. I use it that way personally and it works pretty well.
If you want to run the application with
npm run start-server
, the easiest solution seems to be to edit package.json to your liking.