You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-06-15 00:15:15 +02:00
fix webapp masterdb
This commit is contained in:
@ -2,4 +2,5 @@ export WEB_API_DB_HOST=127.0.0.1:5433
|
||||
export WEB_API_DB_USER=postgres
|
||||
export WEB_API_DB_PASS=postgres
|
||||
export WEB_API_DB_DISABLE_TLS=true
|
||||
export WEB_API_REDIS_HOST=:6378
|
||||
export WEB_API_SERVICE_EMAIL_SENDER=valdez@example.com
|
||||
|
@ -452,9 +452,9 @@ func main() {
|
||||
prjRepo := project.NewRepository(masterDb)
|
||||
|
||||
appCtx := &handlers.AppContext{
|
||||
Log: log,
|
||||
Env: cfg.Env,
|
||||
//MasterDB: masterDb,
|
||||
Log: log,
|
||||
Env: cfg.Env,
|
||||
MasterDB: masterDb,
|
||||
Redis: redisClient,
|
||||
TemplateDir: cfg.Service.TemplateDir,
|
||||
StaticDir: cfg.Service.StaticFiles.Dir,
|
||||
|
@ -2,4 +2,5 @@ export WEB_APP_DB_HOST=127.0.0.1:5433
|
||||
export WEB_APP_DB_USER=postgres
|
||||
export WEB_APP_DB_PASS=postgres
|
||||
export WEB_APP_DB_DISABLE_TLS=true
|
||||
export WEB_APP_REDIS_HOST=:6378
|
||||
export WEB_APP_SERVICE_EMAIL_SENDER=valdez@example.com
|
@ -33,8 +33,6 @@ func Errors(log *log.Logger, renderer web.Renderer) web.Middleware {
|
||||
log.Printf("ERROR : %+v", er)
|
||||
}
|
||||
|
||||
|
||||
|
||||
// Respond to the error.
|
||||
if web.RequestIsJson(r) {
|
||||
if err := web.RespondJsonError(ctx, w, er); err != nil {
|
||||
|
Reference in New Issue
Block a user