diff --git a/server.js b/server.js index 92481b7..0a564e5 100755 --- a/server.js +++ b/server.js @@ -131,7 +131,7 @@ app.get('/publish', async (req, res) => { } if (responseData.uploadUrl) { - await zipProject(path.join(projectPath, 'src')); + await zipProject(path.join(projectPath, 'src'), path.join(projectPath, 'disp.zip')); const body = await fs.readFile(path.join(projectPath, 'dist.zip')); const response = await fetch(`${responseData.uploadUrl}`, { method: 'PUT', @@ -227,7 +227,7 @@ function startBrowserSync() { return cb(); }])); - bs.watch("src/**/*.hbs", function (event, file) { + bs.watch(path.join(projectPath, "src/**/*.hbs"), function (event, file) { browserSyncReload(bs, '', 'Template File Change: ' + file) });