mirror of https://github.com/perkeep/perkeep.git
On GCE, put the UI's thumbnail metadata cache on MySQL too.
Change-Id: Ic3f1238deeb6b569b30e6c3f6b0def2b68f13d93
This commit is contained in:
parent
853de21b18
commit
5903e89490
|
@ -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"
|
||||
|
|
Loading…
Reference in New Issue