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

Feature deployment #1

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

ovila-cs-it-team
Copy link

Add DOCKER supply for automate deployment processes.

@@ -61,7 +61,11 @@ func initConfig() *BotConfig {
}

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