1차 사이트: 첫 페이지·작품 3점·제작 과정·키트 안내
This commit is contained in:
1 parent
9b952f0867
commit
2f22e71ea4
16 files changed
+2323
No files matched your search
Executable
+22
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
REMOTE="admin@100.101.79.24"
|
||||
REMOTE_DIR="/share/CACHEDEV8_DATA/web/www/teamat/"
|
||||
SITE_URL="https://home.lala.dedyn.io/teamat/"
|
||||
|
||||
python3 build.py
|
||||
|
||||
echo
|
||||
echo "배포: ${REMOTE}:${REMOTE_DIR}"
|
||||
rsync -az --delete dist/ "${REMOTE}:${REMOTE_DIR}"
|
||||
|
||||
status="$(curl -s -o /dev/null -w '%{http_code}' "$SITE_URL")"
|
||||
if [ "$status" != "200" ]; then
|
||||
echo "배포 후 확인 실패: ${SITE_URL} (HTTP ${status})" >&2
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "배포 완료: ${SITE_URL} (HTTP ${status})"
|
||||
Executable
+9
@@ -0,0 +1,9 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
python3 build.py
|
||||
echo
|
||||
echo "미리보기: http://localhost:8080"
|
||||
python3 -m http.server 8080 --directory dist
|
||||
Executable
+15
@@ -0,0 +1,15 @@
|
||||
#!/usr/bin/env bash
|
||||
set -euo pipefail
|
||||
|
||||
cd "$(dirname "$0")/.."
|
||||
|
||||
if [ "$#" -eq 0 ]; then
|
||||
echo "마지막 커밋을 되돌립니다."
|
||||
git revert --no-edit HEAD
|
||||
else
|
||||
echo "${1} 커밋을 되돌립니다."
|
||||
git revert --no-edit "$1"
|
||||
fi
|
||||
|
||||
python3 build.py
|
||||
bash scripts/deploy.sh
|
||||
Reference in new issue
Block a user