-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
added possibility to set config file path in environment file #9048
added possibility to set config file path in environment file #9048
Conversation
Hi, thanks for the contribution! This looks good to me so far, though I would rename the var to |
Thank you! @all-contributors add @nwalser for code |
I've put up a pull request to add @nwalser! 🎉 |
I am having a difficult time finding where the .env file is, or where I need to add it to my filesystem. I have both a Windows 10 machine (installed via the setup exe) and a Debian Linux machine (installed via packagecloud). Maybe this info could be added to the Repo's Wiki Config-File page? Thank You! |
Hi @3lorsin |
@3lorsin I will answer your question here as I am not able to edit the wiki pages currently. Tabby will read out the value of the TABBY_CONFIG_DIRECTORY environment variable, in which you can define a directory path to which the config file will be stored/loaded. You have two options to set the desired path:
Note If you have a current configuration for tabby already, you will have to move this file manually to the new place. If there is no config file in the new place a default one gets created for you. Let me know if this worked for you, or if I may clarify something for you. :) |
@nwalser This is working perfectly for me. Thank You for the information and adding this feature! |
Hi Eugeny
This PR adds the ability to set the config file via an environment variable. The variable can be set in a .env file.
For now you would need to edit the .env file manually to move the config file to another location.
Is there a particular problem with the current implementation? Or is it possible to continue on this path and add the needed UI changes?
Resolves: #4327 #6842