From 49a1d1b71902f21d10707f7d13ca418f257d7355 Mon Sep 17 00:00:00 2001 From: Eddie Wang Date: Tue, 3 Dec 2019 16:44:30 -0500 Subject: [PATCH] start --- package.json | 5 ++++- packages/siaviewnode-server/package.json | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) 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" },