This commit is contained in:
Eddie Wang 2019-12-03 16:44:30 -05:00
parent a575a5c4d3
commit 49a1d1b719
No known key found for this signature in database
GPG Key ID: DBFB3E83121BEDD1
2 changed files with 5 additions and 2 deletions

View File

@ -3,7 +3,10 @@
"scripts": { "scripts": {
"client-dev": "yarn workspace siaviewnode-client dev -p 3000", "client-dev": "yarn workspace siaviewnode-client dev -p 3000",
"server-dev": "yarn workspace siaviewnode-server dev", "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": { "workspaces": {
"packages": [ "packages": [

View File

@ -2,7 +2,7 @@
"name": "siaviewnode-server", "name": "siaviewnode-server",
"version": "0.0.1", "version": "0.0.1",
"scripts": { "scripts": {
"start": "node ./build/main.js", "start": "PORT=4000 node ./build/main.js",
"dev": "PORT=4000 backpack dev", "dev": "PORT=4000 backpack dev",
"build": "backpack build" "build": "backpack build"
}, },