From 0a307e747467d460af1e9ce9372f638c108eed16 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stephan=20B=C3=B6nnemann?= Date: Sat, 15 Aug 2015 13:21:25 +0200 Subject: [PATCH] fix(database): run full setup for external couch * * * This commit was sponsored by The Hoodie Firm. You can hire The Hoodie Firm: http://go.hood.ie/thehoodiefirm --- lib/database/index.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lib/database/index.js b/lib/database/index.js index bf139e9..61543d9 100644 --- a/lib/database/index.js +++ b/lib/database/index.js @@ -17,7 +17,11 @@ var log = require('../log') var exports = module.exports = function (env_config, callback) { if (!env_config.couch.run) { - return exports.checkExternalCouch(env_config.couch.url, callback) + return async.series([ + async.apply(mkdirp, env_config.hoodie.data_path), + async.apply(exports.checkExternalCouch, env_config.couch.url), + async.apply(install, env_config) + ], callback) } var project_dir = env_config.project_dir