From 9e00ad1c154a41964a67e3080ab6eb9011bd5bba Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Sat, 7 Mar 2015 00:30:47 +0700 Subject: [PATCH] Obey the prefix --- config.example.json | 2 +- config/config.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config.example.json b/config.example.json index cf19dc6..446d8c2 100644 --- a/config.example.json +++ b/config.example.json @@ -1,6 +1,6 @@ { "app_domain": "localhost", - "database_uri": "root@/empact?parseTime=true", + "app_database_uri": "root@/empact?parseTime=true", "github_auth_url": "https://github.com/login/oauth/authorize", "github_access_token_url": "https://github.com/login/oauth/access_token", "github_client_id": "XXXXXXXXXXXXXXXXXXXX", diff --git a/config/config.go b/config/config.go index ecfbcb6..0cf532e 100644 --- a/config/config.go +++ b/config/config.go @@ -11,7 +11,7 @@ import ( type ( Config struct { Domain string `json:"app_domain"` - DatabaseURI string `json:"database_uri"` + DatabaseURI string `json:"app_database_uri"` AuthURL string `json:"github_auth_url"` AccessTokenURL string `json:"github_access_token_url"` ClientID string `json:"github_client_id"`