fix: use SSH key auth and skip AIUI rebuild in deploy script
- Switch from sshpass to SSH key (~/.ssh/archipelago-deploy) - Use pre-built AIUI dist instead of rebuilding on every deploy - Removes password-based auth dependency Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
3613ca9325
commit
a576b92ef6
@ -154,14 +154,10 @@ if [ "$LIVE" = true ]; then
|
||||
# Build and deploy AIUI (non-fatal — never delete existing AIUI on failure)
|
||||
AIUI_DIR="$PROJECT_DIR/../AIUI"
|
||||
AIUI_DIST="$AIUI_DIR/packages/app/dist"
|
||||
if [ -d "$AIUI_DIR/packages/app" ]; then
|
||||
echo "$(timestamp) Building AIUI for /aiui/ base path..."
|
||||
AIUI_BUILD_OK=false
|
||||
if (cd "$AIUI_DIR" && VITE_BASE_PATH=/aiui/ pnpm build 2>&1 | tail -10); then
|
||||
AIUI_BUILD_OK=true
|
||||
fi
|
||||
cd "$PROJECT_DIR"
|
||||
if [ "$AIUI_BUILD_OK" = true ] && [ -d "$AIUI_DIST" ] && [ -f "$AIUI_DIST/index.html" ]; then
|
||||
if [ -d "$AIUI_DIST" ] && [ -f "$AIUI_DIST/index.html" ]; then
|
||||
# Use pre-built AIUI dist (build with: cd ../AIUI && VITE_BASE_PATH=/aiui/ pnpm build)
|
||||
echo "$(timestamp) Using pre-built AIUI dist..."
|
||||
if true; then
|
||||
echo "$(timestamp) Deploying AIUI..."
|
||||
ssh $SSH_OPTS "$TARGET_HOST" "sudo mkdir -p /opt/archipelago/web-ui/aiui"
|
||||
ssh $SSH_OPTS "$TARGET_HOST" "sudo rm -rf /opt/archipelago/web-ui/aiui/*"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user