fix: fix bug docker

This commit is contained in:
2026-09-02 20:29:41 +03:30
parent c5bfa5544c
commit aeefe075dd
9 changed files with 118 additions and 65 deletions

17
build.sh Normal file → Executable file
View File

@@ -1,13 +1,10 @@
#!/bin/bash
#!/usr/bin/env sh
REPO_DIR="/var/www/html/persian-game/"
set -eu
TOKEN="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"
SCRIPT_DIR=$(CDPATH= cd -- "$(dirname -- "$0")" && pwd)
cd "$SCRIPT_DIR"
cd $REPO_DIR
echo $TOKEN | git pull https://$TOKEN@github.com/joshfe/persian-game.git
npm i
npm run build
ls -al
docker compose config --quiet
docker compose up --detach --build --remove-orphans
docker compose ps