Skip to content
This repository was archived by the owner on Jul 4, 2025. It is now read-only.
This repository was archived by the owner on Jul 4, 2025. It is now read-only.

feat: Read application config .cortexrc from file #1031

Closed

Description

@vansangpfiev

Support reading config from file, it would be easier for us/user to change data folder, port, etc

~$ cat .cortexrc

dataFolderPath: /home/jan/cortex
cortexCppHost: 127.0.0.1
cortexCppPort: 3929
apiServerHost: localhost
apiServerPort: 1337

Activity

  1. dan-menlo commented on Aug 28, 2024

    @dan-menlo
    Contributor

    Question: how would this work if user has multiple Cortex versions installed?

    • cortex
    • cortex-nightly
    • cortex-beta
  2. vansangpfiev commented on Aug 29, 2024

    @vansangpfiev
    ContributorAuthor

    We can add different section for each version, I think

    [cortex]
      dataFolderPath: /home/jan/cortex
      cortexCppHost: 127.0.0.1
      cortexCppPort: 3929
      apiServerHost: localhost
      apiServerPort: 1337
    
    [cortex-nightly]
    ...
    [cortex-beta]
    ...
    
  3. moved this to Planning in Menloon Sep 2, 2024
  4. vansangpfiev commented on Sep 4, 2024

    @vansangpfiev
    ContributorAuthor
  5. moved this from Planning to In Review in Menloon Sep 5, 2024
  6. namchuai commented on Sep 5, 2024

    @namchuai
    Contributor

    PR: #1094

  7. changed the title [-]Read application config from file[/-] [+]feat: Read application config `.cortexrc` from file[/+] on Sep 6, 2024
  8. freelerobot commented on Sep 6, 2024

    @freelerobot
    Contributor

    @namchuai Can I check, did we go with A or B:

    A: Separate Configuration files
    Stable: /Users//.cortexrc
    Beta: /Users//.cortexrc-beta
    Nighty: /Users//.cortexrc-nightly

    B: Universal configuration file
    ~/.cortexrc only.

    Trivial difference but need to remember for uninstaller and other processes. I feel A is easier to track long term...

  9. namchuai commented on Sep 6, 2024

    @namchuai
    Contributor

    Great question @0xSage . I think we go with B. But we don't have any confirmation yet, so please leave your objection if my assumption is wrong.

    • We only have one configuration file ~/.cortexrc
    • ~/.cortexrc will contain configuration for each variants (prod, beta, nightly)

    @dan-homebrew @vansangpfiev @nguyenhoangthuan99

  10. freelerobot commented on Sep 6, 2024

    @freelerobot
    Contributor

    Great question @0xSage . I think we go with B. But we don't have any confirmation yet, so please leave your objection if my assumption is wrong.

    • We only have one configuration file ~/.cortexrc
    • ~/.cortexrc will contain configuration for each variants (prod, beta, nightly)

    @dan-homebrew @vansangpfiev @nguyenhoangthuan99

    Ah this might be insconsistent from spec: #1115 (comment)

    cc @dan-homebrew

  11. namchuai commented on Sep 6, 2024

    @namchuai
    Contributor

    @0xSage you are right. I missed that one. Let's go with A.

  12. added
    category: app shell
    on Sep 6, 2024
  13. namchuai commented on Sep 9, 2024

    @namchuai
    Contributor

    FYI, since we only have cortexcpp as backend, we will only have below settings.

    dataFolderPath: /Users/jamesnguyen/cortexcpp
    apiServerHost: 127.0.0.1
    apiServerPort: 3928
    
  14. namchuai commented on Sep 10, 2024

    @namchuai
    Contributor

    Move to QA since PR is merged.

  15. gabbyong commented on Oct 3, 2024

    @gabbyong
    Contributor

    Image

  16. moved this from Review + QA to Completed in Menloon Oct 3, 2024
  17. added this to the v1.0.0 milestone on Oct 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

category: app shell

Type

No type

Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions