diff --git a/build/serve.js b/build/serve.js index 268fd741f890c562769b97fcc585bc3631d06478..73c919d440dcb0b3749b81fc01761edd70f525c8 100644 --- a/build/serve.js +++ b/build/serve.js @@ -130,9 +130,9 @@ gulp.task('spawn-backend', ['backend', 'kill-backend'], function() { * backend process is killed beforehand, if any. In production the backend does serve the frontend * pages as well. */ -gulp.task('spawn-backend:prod', ['build-frontend', 'backend:prod', 'kill-backend'], function() { +gulp.task('spawn-backend:prod', ['build-frontend', 'backend', 'kill-backend'], function() { runningBackendProcess = child.spawn( - path.join(conf.paths.dist, conf.backend.binaryName), + path.join(conf.paths.serve, conf.backend.binaryName), [ `--apiserver-host=http://${conf.backend.apiServerHost}`, `--port=${conf.frontend.serverPort}`,