-
Notifications
You must be signed in to change notification settings - Fork 2
Description
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:
- Run command
cogsol-admin startproject my_project - Open the generated .env.example file
- Observe the values of
COGSOL_API_BASEandCOGSOL_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.