devcam: always use blobpacked for devcam server

Maybe it can be an option in the future, but for now it's
always on.

Change-Id: I7ec408b145870fc7dcffa42638ebb0daf595982d
This commit is contained in:
Brad Fitzpatrick 2015-02-04 21:02:38 -08:00
parent 5c0e9a1fbe
commit 3e84782750
2 changed files with 22 additions and 1 deletions

View File

@ -117,9 +117,28 @@
}, },
"/bs/": { "/bs/": {
"handler": "storage-blobpacked",
"handlerArgs": {
"smallBlobs": "/bs-loose/",
"largeBlobs": "/bs-packed/",
"metaIndex": {
"type": "kv",
"file": ["_env", "${CAMLI_ROOT}/packindex.kv"]
}
}
},
"/bs-loose/": {
"handler": "storage-filesystem", "handler": "storage-filesystem",
"handlerArgs": { "handlerArgs": {
"path": ["_env", "${CAMLI_ROOT}"] "path": ["_env", "${CAMLI_ROOT}/loose"]
}
},
"/bs-packed/": {
"handler": "storage-filesystem",
"handlerArgs": {
"path": ["_env", "${CAMLI_ROOT}/packed"]
} }
}, },

View File

@ -291,6 +291,8 @@ func (c *serverCmd) setEnvVars() error {
c.makeSuffixdir(v) c.makeSuffixdir(v)
setenv(k, v) setenv(k, v)
} }
c.makeSuffixdir(filepath.Join(fullSuffix("bs"), "packed"))
c.makeSuffixdir(filepath.Join(fullSuffix("bs"), "loose"))
setenv("CAMLI_PORT", c.port) setenv("CAMLI_PORT", c.port)
if c.flickrAPIKey != "" { if c.flickrAPIKey != "" {
setenv("CAMLI_FLICKR_ENABLED", "true") setenv("CAMLI_FLICKR_ENABLED", "true")