-
Notifications
You must be signed in to change notification settings - Fork 60
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
Allow configuration of litedb root path #34
Comments
I ran into this too, and I share your sentiment of not wanting to add another env variable.
|
I haven't had a chance to look into this issue for a good while, @loganmac and @wolfgangrittner , are you still interested in discussing a solution for this? I believe a configuration option for the root path is a good idea, my main concern would be that it needs to work with and without Rails |
I’m game! @wolfgangrittner is right in that the I think a rails initializer that just called to the initialize options of the library would work pretty well. |
Yes, setting the environment explicitly could be an option. I was also thinking of eventually deprecating the different .yml config files per component and instead introducing a global litestack.yml that would include both global and per component configuration. |
I'm brand new to Litestack, I've just been playing with Rails + sqlite in production manually (setting the journal mode to WAL).
It would be nice if we could configure the Litesupport root outside of using an env variable so that I don't have to add yet another env variable to production, and it works the same as dev/staging.
What about using a Rails config initializer? If you are open to this idea, let's hash it out and then I'll create a PR for it.
The text was updated successfully, but these errors were encountered: