From 3a17b64b34facfe83fd22c7e89cf181b2c623663 Mon Sep 17 00:00:00 2001 From: Shahan Nedadahandeh Date: Sun, 26 Jun 2022 15:56:57 -0400 Subject: [PATCH] updated scripts --- package.json | 4 +++- readme.md | 6 +++--- run.sh | 2 -- stop.sh | 1 - 4 files changed, 6 insertions(+), 7 deletions(-) delete mode 100755 run.sh delete mode 100755 stop.sh diff --git a/package.json b/package.json index 954623d..44de38e 100644 --- a/package.json +++ b/package.json @@ -4,7 +4,9 @@ "description": "", "main": "index.js", "scripts": { - "test": "echo \"Error: no test specified\" && exit 1" + "start": "npx forever start csccp.js", + "stop": "npx forever stop csccp.js", + "list": "npx forever list" }, "author": "", "license": "ISC", diff --git a/readme.md b/readme.md index ad9d200..d4d876f 100644 --- a/readme.md +++ b/readme.md @@ -1,6 +1,6 @@ - Fill in .env-example, rename to .env. - Update correct repo and image names in `csccp.js` script, and in the `deployTemplate.yaml` -- To start `./run.sh` -- To view logs, you can run `npx forever list` and then view the corresponding log file -- To stop, `./stop.sh` +- To start `npm start` +- To view logs, you can run `npm run list` and then view the corresponding log file +- To stop, `npm stop` diff --git a/run.sh b/run.sh deleted file mode 100755 index 0e1ead9..0000000 --- a/run.sh +++ /dev/null @@ -1,2 +0,0 @@ -npm install -npx forever start csccp.js diff --git a/stop.sh b/stop.sh deleted file mode 100755 index 542faf3..0000000 --- a/stop.sh +++ /dev/null @@ -1 +0,0 @@ -npx forever stop csccp.js