Skip to content

Commit 215f496

Browse files
committed
forever run script
1 parent 0a4a65a commit 215f496

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"main": "src/index.ts",
66
"scripts": {
77
"start": "ts-node src/index.ts",
8-
"prod": "nodemon --transpile-only src/index.ts"
8+
"prod": "nodemon --exitcrash --transpile-only src/index.ts"
99
},
1010
"author": "Reece Williams (@Reecepbcups_)",
1111
"license": "ISC",

run.sh

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash
2+
3+
while true; do
4+
npm start prod
5+
sleep 1
6+
done

0 commit comments

Comments
 (0)