From ece057dfc6c4bb7eafcfa05a7106b5ffaf2994c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Branko=20Kolesari=C4=87?= Date: Fri, 14 Oct 2022 16:30:02 +0200 Subject: [PATCH] fix: Backstop server path (#53) * fix: Backstop server path * Use path relative to current dir --- resources/Visual/create-backstop-config.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resources/Visual/create-backstop-config.js b/resources/Visual/create-backstop-config.js index ccb0ea4..ec30e4c 100644 --- a/resources/Visual/create-backstop-config.js +++ b/resources/Visual/create-backstop-config.js @@ -5,7 +5,7 @@ function createBackstopConfig(root = __dirname + "/public", scenarios = [], defa spawn( "node", - ["./http-server.js"], + [__dirname + "/http-server.js"], { detached: true, stdio: "inherit", env: { ...process.env, SERVER_PORT, ROOT: root } } ).unref();