fix: fix bug docker
This commit is contained in:
17
build.sh
Normal file → Executable file
17
build.sh
Normal file → Executable 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
|
||||
|
||||
Reference in New Issue
Block a user