Skip to content

[BUG] Change URL's in .env.example #6

@n1colasf

Description

@n1colasf

Bug Description

When creating a new project with cogsol-admin startproject, the generated .env.example file does not append the required endpoint paths to the base URLs.
Specifically, /cognitive and /content are not automatically added to the corresponding API base URLs, which leads to incorrect default configuration.

To Reproduce

Steps to reproduce the behavior:

  1. Run command cogsol-admin startproject my_project
  2. Open the generated .env.example file
  3. Observe the values of COGSOL_API_BASE and COGSOL_CONTENT_API_BASE

Expected Behavior

The generated .env.example should automatically include the required endpoint paths:

COGSOL_API_BASE should end with /cognitive
COGSOL_CONTENT_API_BASE should end with /content

Actual Behavior

The generated .env.example file contains only the base URLs without the required paths:

COGSOL_API_BASE=http://localhost:8000
COGSOL_CONTENT_API_BASE=http://localhost:8001

Error Output

No runtime error is thrown, but API requests fail or point to incorrect endpoints due to missing paths.

Environment

  • OS: Ubuntu 22.04
  • Python version: 3.11.x
  • CogSol version: 0.2.0 (alpha)

Additional Context

The issue originates from the project template generator, where the .env.example content is hardcoded without appending /cognitive and /content to their respective base URLs.
Automatically generating the correct defaults would improve developer experience and reduce setup errors.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions