rewrite start script

This commit is contained in:
Karol Wypchlo 2020-02-17 13:48:04 +01:00
parent 628fad133f
commit 155db5f7f4
2 changed files with 3 additions and 3 deletions

View File

@ -2,7 +2,7 @@
"name": "siaviewnode-server", "name": "siaviewnode-server",
"version": "0.0.1", "version": "0.0.1",
"scripts": { "scripts": {
"start": "PORT=4000 node ./build/main.js", "start": "yarn build && PORT=4000 node ./build/main.js",
"build": "tsc --sourceMap" "build": "tsc --sourceMap"
}, },
"license": "MIT", "license": "MIT",

View File

@ -1,9 +1,9 @@
{ {
"apps": [ "apps": [
{ {
"name": "siaviewer", "name": "skynet-api",
"script": "yarn", "script": "yarn",
"args": "start", "args": "start:server",
"interpreter": "/bin/bash" "interpreter": "/bin/bash"
} }
] ]