From 66a5a6176f3960096161a6ce03409066950c1e6b Mon Sep 17 00:00:00 2001 From: mpl Date: Thu, 23 Jul 2015 16:43:03 +0200 Subject: [PATCH] serverinit: enable blobPacked in default config Also, devcam server: make loose blobs location consistent with location on production server. Change-Id: Ib4314f4b736595c071e710792d2e8ecacebf3a14 --- config/dev-server-config.json | 2 +- dev/devcam/server.go | 1 - pkg/serverinit/genconfig.go | 1 + 3 files changed, 2 insertions(+), 2 deletions(-) diff --git a/config/dev-server-config.json b/config/dev-server-config.json index e753459a0..96638b512 100644 --- a/config/dev-server-config.json +++ b/config/dev-server-config.json @@ -136,7 +136,7 @@ "/bs-loose/": { "handler": "storage-filesystem", "handlerArgs": { - "path": ["_env", "${CAMLI_ROOT}/loose"] + "path": ["_env", "${CAMLI_ROOT}"] } }, diff --git a/dev/devcam/server.go b/dev/devcam/server.go index eb56229e8..5277df774 100644 --- a/dev/devcam/server.go +++ b/dev/devcam/server.go @@ -292,7 +292,6 @@ func (c *serverCmd) setEnvVars() error { setenv(k, v) } c.makeSuffixdir(filepath.Join(fullSuffix("bs"), "packed")) - c.makeSuffixdir(filepath.Join(fullSuffix("bs"), "loose")) setenv("CAMLI_PORT", c.port) if c.flickrAPIKey != "" { setenv("CAMLI_FLICKR_ENABLED", "true") diff --git a/pkg/serverinit/genconfig.go b/pkg/serverinit/genconfig.go index 960519998..db2a1cfb3 100644 --- a/pkg/serverinit/genconfig.go +++ b/pkg/serverinit/genconfig.go @@ -867,6 +867,7 @@ func WriteDefaultConfigFile(filePath string, useSQLite bool) error { return fmt.Errorf("Could not create default blobs directory: %v", err) } conf.BlobPath = blobDir + conf.PackRelated = true if useSQLite { conf.SQLite = filepath.Join(osutil.CamliVarDir(), "camli-index.db") } else {