From 155db5f7f473478b91ed4f3fe8d2637831120d64 Mon Sep 17 00:00:00 2001 From: Karol Wypchlo Date: Mon, 17 Feb 2020 13:48:04 +0100 Subject: [PATCH] rewrite start script --- packages/siaviewnode-server/package.json | 2 +- pm2.json | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/siaviewnode-server/package.json b/packages/siaviewnode-server/package.json index d4515f7a..ece1815c 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": "PORT=4000 node ./build/main.js", + "start": "yarn build && PORT=4000 node ./build/main.js", "build": "tsc --sourceMap" }, "license": "MIT", diff --git a/pm2.json b/pm2.json index 0e7062db..4d183ba0 100644 --- a/pm2.json +++ b/pm2.json @@ -1,9 +1,9 @@ { "apps": [ { - "name": "siaviewer", + "name": "skynet-api", "script": "yarn", - "args": "start", + "args": "start:server", "interpreter": "/bin/bash" } ]