You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I add LITESTACK_DATA_PATH="./storage" to my .env it is picked up after the litestack initializes some classes so it uses the default path to create the databases, but later on, it tries to find databases files in LITESTACK_DATA_PATH (i think)
See this screenshot where I paused execution.
This leads to the app having sqlite3 files in 2 different parts:
The text was updated successfully, but these errors were encountered:
I have experienced the same behavior. Litestack should probably provide a runtime configuration code path; currently, the LITESTACK_DATA_PATH and other configuration settings are loaded at boot time.
My workaround in Rails is to load dotenv at the top of application.rb, per the dotenv README.
@rossta's suggestion seems to work for some modules (database), but not all (queue, metrics). It seems that a more reliable solution is to provide hard-coded paths in the configs for these modules:
It also seems that these database files are being initialized even if the modules are not being used in the application. It would be nice to only have them initialized if they are needed.
If I add
LITESTACK_DATA_PATH="./storage"
to my.env
it is picked up after the litestack initializes some classes so it uses the default path to create the databases, but later on, it tries to find databases files in LITESTACK_DATA_PATH (i think)See this screenshot where I paused execution.
This leads to the app having sqlite3 files in 2 different parts:
The text was updated successfully, but these errors were encountered: