From ec3e3d1f89c8a75de6e7090f71222dea7ea97e3a Mon Sep 17 00:00:00 2001 From: syui Date: Wed, 11 Jun 2025 15:58:41 +0900 Subject: [PATCH] fix run --- run.zsh | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/run.zsh b/run.zsh index 798da70..9a08b13 100755 --- a/run.zsh +++ b/run.zsh @@ -10,10 +10,11 @@ function _env() { function _server() { _env - lsof -ti:8080 | xargs kill -9 2>/dev/null || true + lsof -ti:4173 | xargs kill -9 2>/dev/null || true cd $d/my-blog - $ailog build --release - $ailog serve --port 8080 + cargo build --release + #$ailog build + $ailog serve --port 4173 } function _server_public() { @@ -37,7 +38,9 @@ function _oauth_build() { export VITE_OAUTH_REDIRECT_URI="https://log.syui.ai/oauth/callback" npm run build - npm run preview + #npm run preview + cp -rf dist/* $d/my-blog/static/ + cp -rf dist/index.html $d/my-blog/public/ } function _server_comment() {