Skip to content

Conversation

@ovila-cs-it-team
Copy link

Add DOCKER supply for automate deployment processes.

config.Database.URL = fmt.Sprintf(
"postgres://%s:%s@%s/%s", config.Database.Username, config.Database.Password, config.Database.Host, config.Database.Name,
"postgres://%s:%s@%s/%s",
os.Getenv(config.Database.Username),
Copy link

@eliasbokreta eliasbokreta Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

os.Getenv() is waiting for the env var's key but here you pass a value which may be empty according to the change from config to env var

Copy link
Author

@ovila-cs-it-team ovila-cs-it-team Aug 24, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

No, it's on purpose, I do pass the env key as specified in the README. So that the key can be change easily without modifying the code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants