Repository navigation
Separately configurable locations for server config, server data, and client files #19591
colonelpanic8
started this conversation in
Ideas
Replies: 1 comment
|
Proposed implementations are on my fork, not opened here:
Happy to open either here if you want them. |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
TL;DR:
~/.t3mixes server configuration, server data, and the desktop client's own files under one root, andT3CODE_HOMEmoves them all together. I'd like each to have its own location you can set. Below is a classification of the existing files, which is the decision #17971 is waiting on. The first step changes no defaults, so it doesn't need a policy for existing installs. Is this direction wanted?Problem
T3CODE_HOME/--home-dir/--base-diris the only location setting.deriveServerPathsinapps/server/src/config.tsderives every path from it.userdata/holdssettings.json,keybindings.json, andthemes/next tostatev2.sqlite,secrets/, logs, and attachments. Config can't be versioned, backed up, or mounted separately from data, and the database can't move to another disk without taking config with it.client-settings.json,desktop-settings.json,connection-catalog.json) also live in the server'suserdata/(DesktopEnvironment.ts,DesktopConnectionCatalogStore.ts), even for a desktop that only connects to remote environments.Proposed classification
settings.json,keybindings.json,themes/statev2.sqlite,attachments/,secrets/,logs/,browser-artifacts/,worktrees/,environment-id,anonymous-id,server-runtime.jsoncaches/client-settings.json, the preferences indesktop-settings.json(update channel, WSL)connection-catalog.jsonStaged so defaults don't change
T3CODE_*env vars). When unset, each derives from the base directory exactly as today.~/.t3installs. After step 1 that is purely a question about defaults.Questions
themes/as config.Prior art
Related
All reactions