diff --git a/package.json b/package.json index afa6019a..eb0aecfa 100644 --- a/package.json +++ b/package.json @@ -3,7 +3,10 @@ "scripts": { "client-dev": "yarn workspace siaviewnode-client dev -p 3000", "server-dev": "yarn workspace siaviewnode-server dev", - "dev": "concurrently \"yarn client-dev\" \"yarn server-dev\"" + "client-prod": "yarn workspace siaviewnode-client start -p 3000", + "server-prod": "yarn workspace siaviewnode-server build && yarn workspace siaviewnode-server start", + "dev": "concurrently \"yarn client-dev\" \"yarn server-dev\"", + "start": "concurrently \"yarn client-prod\" \"yarn server-prod\"" }, "workspaces": { "packages": [ diff --git a/packages/siaviewnode-server/package.json b/packages/siaviewnode-server/package.json index 8925596c..4c2fb96d 100644 --- a/packages/siaviewnode-server/package.json +++ b/packages/siaviewnode-server/package.json @@ -2,7 +2,7 @@ "name": "siaviewnode-server", "version": "0.0.1", "scripts": { - "start": "node ./build/main.js", + "start": "PORT=4000 node ./build/main.js", "dev": "PORT=4000 backpack dev", "build": "backpack build" },