On GCE, put the UI's thumbnail metadata cache on MySQL too.

Change-Id: Ic3f1238deeb6b569b30e6c3f6b0def2b68f13d93
This commit is contained in:
Brad Fitzpatrick 2014-08-23 19:55:04 -07:00
parent 853de21b18
commit 5903e89490
1 changed files with 2 additions and 1 deletions

View File

@ -77,7 +77,8 @@ func DefaultEnvConfig() (*Config, error) {
if v := os.Getenv("MYSQLDB_PORT"); strings.HasPrefix(v, "tcp://") {
hostPort := strings.TrimPrefix(v, "tcp://")
highConf.MySQL = "root@" + hostPort + ":" // no password
highConf.DBNames["queue-sync-to-index"] = "camsyncqueue_index"
highConf.DBNames["queue-sync-to-index"] = "sync_index_queue"
highConf.DBNames["ui_thumbcache"] = "ui_thumbmeta_cache"
} else {
// TODO: also detect Cloud SQL.
highConf.KVFile = "/index.kv"