Skip to content

Commit

Permalink
fix: load all env variables
Browse files Browse the repository at this point in the history
  • Loading branch information
katallaxie committed Jul 3, 2024
1 parent ff1a1e1 commit 5dfe757
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cmd/web/cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"log"
"net/http"
"os"

"github.com/kelseyhightower/envconfig"
authz "github.com/zeiss/fiber-authz"
Expand Down Expand Up @@ -83,7 +82,7 @@ func NewWebSrv(cfg *Config) *WebSrv {
// Start starts the server.
func (s *WebSrv) Start(ctx context.Context, ready server.ReadyFunc, run server.RunFunc) func() error {
return func() error {
providers.RegisterProvider(github.New(cfg.Flags.GothGitbubKey, os.Getenv("GITHUB_SECRET"), "http://loc:3000/auth/github/callback"))
providers.RegisterProvider(github.New(cfg.Flags.GothGitbubKey, cfg.Flags.GothGithubSecret, cfg.Flags.GothGithubCallback))

conn, err := gorm.Open(postgres.Open(cfg.Flags.DatabaseURI), &gorm.Config{
NamingStrategy: schema.NamingStrategy{
Expand Down

0 comments on commit 5dfe757

Please sign in to comment.