diff --git a/config/dev-server-config.json b/config/dev-server-config.json index 056da2eed..7519c09e1 100644 --- a/config/dev-server-config.json +++ b/config/dev-server-config.json @@ -117,9 +117,28 @@ }, "/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", "handlerArgs": { - "path": ["_env", "${CAMLI_ROOT}"] + "path": ["_env", "${CAMLI_ROOT}/loose"] + } + }, + + "/bs-packed/": { + "handler": "storage-filesystem", + "handlerArgs": { + "path": ["_env", "${CAMLI_ROOT}/packed"] } }, diff --git a/dev/devcam/server.go b/dev/devcam/server.go index 75bf51cfa..eb56229e8 100644 --- a/dev/devcam/server.go +++ b/dev/devcam/server.go @@ -291,6 +291,8 @@ func (c *serverCmd) setEnvVars() error { c.makeSuffixdir(v) 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")