From 29d881ebca5348549235496ba806a488112d0dce Mon Sep 17 00:00:00 2001 From: soheil khaledabadi Date: Sat, 22 Jun 2024 19:03:36 +0330 Subject: [PATCH] Create -> bash file for build project on server --- build.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 build.sh diff --git a/build.sh b/build.sh new file mode 100644 index 0000000..5dcbb83 --- /dev/null +++ b/build.sh @@ -0,0 +1,13 @@ +#!/bin/bash + +REPO_DIR="/var/www/html/persian-ping/" + +TOKEN="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" + +cd $REPO_DIR + +echo $TOKEN | git pull https://$TOKEN@github.com/joshfe/persian-game.git + +npm i +npm run build +ls -al \ No newline at end of file