Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DevOps: peotry run dev host and port cannot be configured via ENV vars #119

Open
maany opened this issue Apr 12, 2024 · 0 comments
Open

Comments

@maany
Copy link
Collaborator

maany commented Apr 12, 2024

The wiring of the environment variables like KP_FASTAPI_HOST and other params in the config.fastapi section is not wired to the FastAPI app. The FastAPI app always runs on localhost and on port 8000. This is an issue for creating deployments where we might want to change the port where the prod instance runs to 80 or 443.

To re-create the issue, use the following .env file

KP_RDBMS_HOST=localhost
KP_RDBMS_PORT=5435
KP_RDBMS_DBNAME=kp-db
KP_RDBMS_USERNAME=postgres
KP_RDBMS_PASSWORD=postgres
KP_FASTAPI_PORT=8004
KP_OBJECT_STORE_HOST=localhost
KP_OBJECT_STORE_PORT=9002
KP_OBJECT_STORE_ACCESS_KEY=minio
KP_OBJECT_STORE_SECRET_KEY=minio123
KP_OBJECT_STORE_BUCKET=default
KP_OBJECT_STORE_SIGNED_URL_EXPIRY=60

and then start kernel planckster

poetry run dev

The FastAPI server will start on port 8000 and not port 8004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant