updated scripts

This commit is contained in:
Shahan Nedadahandeh 2022-06-26 15:56:57 -04:00
parent 46e890637d
commit 3a17b64b34
4 changed files with 6 additions and 7 deletions

View File

@ -4,7 +4,9 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "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": "", "author": "",
"license": "ISC", "license": "ISC",

View File

@ -1,6 +1,6 @@
- Fill in .env-example, rename to .env. - Fill in .env-example, rename to .env.
- Update correct repo and image names in `csccp.js` script, and in the `deployTemplate.yaml` - Update correct repo and image names in `csccp.js` script, and in the `deployTemplate.yaml`
- To start `./run.sh` - To start `npm start`
- To view logs, you can run `npx forever list` and then view the corresponding log file - To view logs, you can run `npm run list` and then view the corresponding log file
- To stop, `./stop.sh` - To stop, `npm stop`

2
run.sh
View File

@ -1,2 +0,0 @@
npm install
npx forever start csccp.js

View File

@ -1 +0,0 @@
npx forever stop csccp.js