From 5e26ca203f94c13e63d149dde39b2d36d5164b4a Mon Sep 17 00:00:00 2001 From: alex Date: Sat, 13 Jan 2024 21:06:25 +0100 Subject: [PATCH] git --- .gitignore | 5 +++++ commit_and_push.sh | 7 +++++++ start.sh | 2 +- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 .gitignore create mode 100755 commit_and_push.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..1dc1cf6 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +build/ +node_modules/ +npm-debug.log +yarn-error.log +.env \ No newline at end of file diff --git a/commit_and_push.sh b/commit_and_push.sh new file mode 100755 index 0000000..554786f --- /dev/null +++ b/commit_and_push.sh @@ -0,0 +1,7 @@ +git add * + +read -p "Commit message: " commit_message + +git commit -m "$commit_message" + +git push -u origin main \ No newline at end of file diff --git a/start.sh b/start.sh index dc3e1eb..31cdd2b 100644 --- a/start.sh +++ b/start.sh @@ -1,2 +1,2 @@ screen -dmS customer-dashboard-api | exit 0 -screen -S customer-dashboard-api -p 0 -X stuff 'npm run dev\n' \ No newline at end of file +screen -S customer-dashboard-api -p 0 -X stuff 'npx tsc && node build/server.js\n' \ No newline at end of file