Create -> bash file for build project on server

This commit is contained in:
2024-06-22 19:03:36 +03:30
parent 18a54817b1
commit 29d881ebca

13
build.sh Normal file
View File

@@ -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