Skip to content

Make everything configurable with env variables #8

Open
@php-coder

Description

@php-coder

To comply with 12 factors (see https://www.12factor.net/config), let's make everything configurable with env variables.

The following line should be modified to not hard-code a host and port:

dsn := fmt.Sprintf("%s:%s@tcp(localhost:3306)/%s", user, pass, dbName)

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions