Skip to content

Changing TRILIUM_DATA_DIR - export doesn't do the trick #178

Answered by capi
kjgcoop asked this question in Q&A
Discussion options

You must be logged in to vote

Hi, looking at package.json, the npm run start-server is defined as

"start-server": "cross-env TRILIUM_SAFE_MODE=1 TRILIUM_DATA_DIR=./data TRILIUM_ENV=dev TRILIUM_SYNC_SERVER_HOST=http://tsyncserver:4000 nodemon src/www.ts"

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 npm run start-server, the easiest solution seems to be to edit package.json to your liking.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by kjgcoop
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants