-
Notifications
You must be signed in to change notification settings - Fork 1
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
base: master
Are you sure you want to change the base?
Feature deployment #1
Conversation
@@ -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), |
There was a problem hiding this comment.
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
There was a problem hiding this comment.
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.
Add DOCKER supply for automate deployment processes.