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" } ]