사진 모집 서버 종료
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
*.sh text eol=lf
|
||||||
@@ -24,7 +24,6 @@ echo "$(date '+%Y-%m-%d %H:%M:%S') deploy start" >> "$LOG_FILE"
|
|||||||
git -c credential.helper="store --file=/var/services/homes/whitekomani/.git-credentials" fetch origin main >> "$LOG_FILE" 2>&1
|
git -c credential.helper="store --file=/var/services/homes/whitekomani/.git-credentials" fetch origin main >> "$LOG_FILE" 2>&1
|
||||||
git reset --hard origin/main >> "$LOG_FILE" 2>&1
|
git reset --hard origin/main >> "$LOG_FILE" 2>&1
|
||||||
|
|
||||||
/usr/local/bin/docker build -t photoreq:latest . >> "$LOG_FILE" 2>&1
|
/usr/local/bin/docker rm -f photoreq >> "$LOG_FILE" 2>&1 || true
|
||||||
./run.sh >> "$LOG_FILE" 2>&1
|
|
||||||
|
|
||||||
echo "$(date '+%Y-%m-%d %H:%M:%S') deploy done $(git rev-parse --short HEAD)" >> "$LOG_FILE"
|
echo "$(date '+%Y-%m-%d %H:%M:%S') deploy stopped photoreq $(git rev-parse --short HEAD)" >> "$LOG_FILE"
|
||||||
|
|||||||
@@ -2,17 +2,6 @@
|
|||||||
set -eu
|
set -eu
|
||||||
|
|
||||||
APP_DIR="$(cd "$(dirname "$0")" && pwd)"
|
APP_DIR="$(cd "$(dirname "$0")" && pwd)"
|
||||||
UPLOAD_DIR="/volume2/AKA Drive/사진 받기"
|
|
||||||
|
|
||||||
/usr/local/bin/docker rm -f photoreq >/dev/null 2>&1 || true
|
/usr/local/bin/docker rm -f photoreq >/dev/null 2>&1 || true
|
||||||
/usr/local/bin/docker run -d \
|
echo "photoreq is closed; container removed from $APP_DIR"
|
||||||
--name photoreq \
|
|
||||||
--restart unless-stopped \
|
|
||||||
-p 18082:8080 \
|
|
||||||
--env-file "$APP_DIR/.env" \
|
|
||||||
-e PUBLIC_BASE_URL="https://photoreq.mokaya.org" \
|
|
||||||
-e ADMIN_ALLOWED_IPS="${ADMIN_ALLOWED_IPS:-112.159.64.27,162.12.184.41,192.168.219.100,192.168.219.1}" \
|
|
||||||
-e MAX_FIELDS_SIZE_MB="2" \
|
|
||||||
-v "$APP_DIR/data:/data" \
|
|
||||||
-v "$UPLOAD_DIR:/uploads" \
|
|
||||||
photoreq:latest
|
|
||||||
|
|||||||
Reference in New Issue
Block a user