Init Gitea

This commit is contained in:
dqj
2025-10-06 21:31:13 +09:00
commit c879b8de12
60 changed files with 41314 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
# Git hooks in server's ~/your-app.git/hooks/post-receive
#!/bin/bash
TARGET_DIR=~/sisai-world
GIT_DIR=~/cicd/sisai-world-cicd.git
BRANCH=main
# Checkout the code to the target directory
git --work-tree=$TARGET_DIR --git-dir=$GIT_DIR checkout -f $BRANCH
# Navigate to the target directory
cd $TARGET_DIR
# Our code support hot reload, refer 'Hot reload support' in process.js