You've already forked golang-saas-starter-kit
mirror of
https://github.com/raseels-repos/golang-saas-starter-kit.git
synced 2025-06-17 00:17:59 +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_USER=postgres
|
||||||
export WEB_API_DB_PASS=postgres
|
export WEB_API_DB_PASS=postgres
|
||||||
export WEB_API_DB_DISABLE_TLS=true
|
export WEB_API_DB_DISABLE_TLS=true
|
||||||
|
export WEB_API_REDIS_HOST=:6378
|
||||||
export WEB_API_SERVICE_EMAIL_SENDER=valdez@example.com
|
export WEB_API_SERVICE_EMAIL_SENDER=valdez@example.com
|
||||||
|
@ -452,9 +452,9 @@ func main() {
|
|||||||
prjRepo := project.NewRepository(masterDb)
|
prjRepo := project.NewRepository(masterDb)
|
||||||
|
|
||||||
appCtx := &handlers.AppContext{
|
appCtx := &handlers.AppContext{
|
||||||
Log: log,
|
Log: log,
|
||||||
Env: cfg.Env,
|
Env: cfg.Env,
|
||||||
//MasterDB: masterDb,
|
MasterDB: masterDb,
|
||||||
Redis: redisClient,
|
Redis: redisClient,
|
||||||
TemplateDir: cfg.Service.TemplateDir,
|
TemplateDir: cfg.Service.TemplateDir,
|
||||||
StaticDir: cfg.Service.StaticFiles.Dir,
|
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_USER=postgres
|
||||||
export WEB_APP_DB_PASS=postgres
|
export WEB_APP_DB_PASS=postgres
|
||||||
export WEB_APP_DB_DISABLE_TLS=true
|
export WEB_APP_DB_DISABLE_TLS=true
|
||||||
|
export WEB_APP_REDIS_HOST=:6378
|
||||||
export WEB_APP_SERVICE_EMAIL_SENDER=valdez@example.com
|
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)
|
log.Printf("ERROR : %+v", er)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// Respond to the error.
|
// Respond to the error.
|
||||||
if web.RequestIsJson(r) {
|
if web.RequestIsJson(r) {
|
||||||
if err := web.RespondJsonError(ctx, w, er); err != nil {
|
if err := web.RespondJsonError(ctx, w, er); err != nil {
|
||||||
|
Reference in New Issue
Block a user