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

Multiple .env files for multiple environments #561

Open
ramiro-jimenez-clip opened this issue Jan 10, 2025 · 2 comments
Open

Multiple .env files for multiple environments #561

ramiro-jimenez-clip opened this issue Jan 10, 2025 · 2 comments

Comments

@ramiro-jimenez-clip
Copy link

ramiro-jimenez-clip commented Jan 10, 2025

Hi! I'm experiencing difficulties to understand how to use the same build (./gradlew clean zip) and be able to select an .env file depending on a environment variable living on a running container.

For example:
In my stage environment, I want to do: docker run -d -p 8080:80 -e ENVIRONMENT=stage my-image-from-kotlin-js-nginx

I want to take the environment variable into the docker, with my KVision project.
Is this resolved in any another issue?

I couldn't find anything useful yet.

Hope you can help me. Thanks!

@ramiro-jimenez-clip
Copy link
Author

ramiro-jimenez-clip commented Jan 10, 2025

The final purpose is to have different .env files for each environment where I deploy the app.

@rjaros
Copy link
Owner

rjaros commented Jan 10, 2025

I'm not sure I understand. What would you like to accomplish?
The KVision app doesn't work in a container - it runs in a user's web browser.

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

2 participants