Skip to content

refactor: replace .env file with environment variables#39

Merged
akshaydeo merged 1 commit intomainfrom
05-15-fix_transports_modified_for_taking_env_from_session
May 18, 2025
Merged

refactor: replace .env file with environment variables#39
akshaydeo merged 1 commit intomainfrom
05-15-fix_transports_modified_for_taking_env_from_session

Conversation

@Pratham-Mishra04
Copy link
Copy Markdown
Collaborator

Remove .env file dependency in favor of environment variables

This PR removes the dependency on .env files for configuration and instead uses environment variables directly. This simplifies the setup process and aligns with standard container practices.

Key changes:

  • Removed the -env flag from the HTTP server command
  • Updated the Dockerfile to no longer require an ENV_PATH argument
  • Deleted the .env.sample file as it's no longer needed
  • Modified the ReadKeys() function to read directly from the environment instead of a .env file
  • Removed the godotenv dependency
  • Updated documentation in README files to reflect the new environment variable approach
  • Fixed a path in the Dockerfile for building the binary

Users now need to set environment variables directly in their shell or pass them to Docker using the -e flag rather than creating a separate .env file.

Comment thread transports/go.mod Outdated
@Pratham-Mishra04 Pratham-Mishra04 force-pushed the 05-15-fix_transports_modified_for_taking_env_from_session branch from 5ef8f6c to c98f7bc Compare May 17, 2025 05:44
@Pratham-Mishra04 Pratham-Mishra04 force-pushed the 05-15-fix_vertex_ai_provider_cred_input_changes branch from c58ad8c to 763035f Compare May 17, 2025 05:44
@Pratham-Mishra04 Pratham-Mishra04 requested a review from danpiths May 17, 2025 05:44
Copy link
Copy Markdown
Contributor

akshaydeo commented May 18, 2025

Merge activity

  • May 18, 5:42 PM GMT+5:30: A user started a stack merge that includes this pull request via Graphite.
  • May 18, 5:52 PM GMT+5:30: Graphite rebased this pull request as part of a merge.
  • May 18, 5:54 PM GMT+5:30: @akshaydeo merged this pull request with Graphite.

@akshaydeo akshaydeo changed the base branch from 05-15-fix_vertex_ai_provider_cred_input_changes to graphite-base/39 May 18, 2025 12:19
@akshaydeo akshaydeo changed the base branch from graphite-base/39 to main May 18, 2025 12:21
@akshaydeo akshaydeo force-pushed the 05-15-fix_transports_modified_for_taking_env_from_session branch from c98f7bc to 3be2341 Compare May 18, 2025 12:22
@akshaydeo akshaydeo merged commit f58a0e4 into main May 18, 2025
1 check passed
@Pratham-Mishra04 Pratham-Mishra04 deleted the 05-15-fix_transports_modified_for_taking_env_from_session branch May 18, 2025 18:06
akshaydeo added a commit that referenced this pull request Nov 17, 2025
# Remove .env file dependency in favor of environment variables

This PR removes the dependency on `.env` files for configuration and instead uses environment variables directly. This simplifies the setup process and aligns with standard container practices.

Key changes:
- Removed the `-env` flag from the HTTP server command
- Updated the Dockerfile to no longer require an ENV_PATH argument
- Deleted the `.env.sample` file as it's no longer needed
- Modified the `ReadKeys()` function to read directly from the environment instead of a .env file
- Removed the godotenv dependency
- Updated documentation in README files to reflect the new environment variable approach
- Fixed a path in the Dockerfile for building the binary

Users now need to set environment variables directly in their shell or pass them to Docker using the `-e` flag rather than creating a separate .env file.
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

Successfully merging this pull request may close these issues.

3 participants