8000 Race condition between env and defaults when using LITESTACK_DATA_PATH with dotenv gem · Issue #91 · oldmoe/litestack · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
Race condition between env and defaults when using LITESTACK_DATA_PATH with dotenv gem #91
Open
@silva96

Description

@silva96

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.

CleanShot 2024-01-29 at 23 37 12@2x

This leads to the app having sqlite3 files in 2 different parts:

CleanShot 2024-01-29 at 23 59 45@2x

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0