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

Handle configuration by phase #11

Closed
Tracked by #31
minkj1992 opened this issue Jul 13, 2022 · 2 comments
Closed
Tracked by #31

Handle configuration by phase #11

minkj1992 opened this issue Jul 13, 2022 · 2 comments
Assignees
Labels
infra e.g. deploy, gcp, youtube-api task epic: task = 1:N
Projects

Comments

@minkj1992
Copy link
Member

minkj1992 commented Jul 13, 2022

There are two phases

  1. local
  2. prod

To load env variable I picked godotenv

The env variables used for production phase will be managed in the settings of gcp cloud run.
Screen Shot 2022-07-13 at 6 38 02 PM

@minkj1992 minkj1992 self-assigned this Jul 13, 2022
@minkj1992 minkj1992 added this to To do in myply_v1 Jul 13, 2022
@minkj1992 minkj1992 moved this from To do to In progress in myply_v1 Jul 13, 2022
@minkj1992 minkj1992 removed the feature label Jul 13, 2022
@minkj1992 minkj1992 moved this from In progress to Review in myply_v1 Jul 13, 2022
@minkj1992 minkj1992 added infra e.g. deploy, gcp, youtube-api task epic: task = 1:N labels Jul 13, 2022
@minkj1992 minkj1992 moved this from Review to In progress in myply_v1 Jul 13, 2022
@minkj1992 minkj1992 moved this from In progress to Review in myply_v1 Jul 13, 2022
@mcauto
Copy link
Member

mcauto commented Jul 14, 2022

@minkj1992 Have you ever seen github.com/Netflix/go-env?
It doesn't support .env, but the tag of struct was cool. :)

it's my example - https://github.com/mcauto/todolist-api/blob/main/modules/config/settings.go

@minkj1992
Copy link
Member Author

👏 �Tag feature looks cool, also the go-env' source code is really simple.

@minkj1992 minkj1992 moved this from Review to Done in myply_v1 Jul 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
infra e.g. deploy, gcp, youtube-api task epic: task = 1:N
Projects
Development

No branches or pull requests

2 participants