Files
persian-ping-frontend/build.sh

13 lines
218 B
Bash

#!/bin/bash
REPO_DIR="/var/www/html/persian-game/"
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