Skip to content

Use TEXTDB_HOME environment variable across the system. #474

Closed

Description

@zuozhiw

We've been using relative paths for locating files, folders, resources. And this approach is unreliable because of the current working directory will change in different scenarios.

We've tried using java's getResources to solve this problem, but when we pack the files and folders into a jar files, the folders don't work.

Therefore we introduce a TEXTDB_HOME environment variable and will use that throughout the system.

Activity

  1. added a commit that references this issue on May 2, 2017
  2. self-assigned this
    on May 9, 2017
  3. zuozhiw commented on Oct 16, 2017

    @zuozhiw
    ContributorAuthor

    PR #475 introduces the TEXTDB_HOME environment variable and start using it in the system.

    However, the environment variable causes a problem that only one instance of texera can be deployed properly in a machine. To address this issue, PR #574 removes the environment approach and uses a search-based method to traverse the file system and find the proper texera home directory.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions