test ai-blog
This commit is contained in:
14
scpt/run.zsh
14
scpt/run.zsh
@@ -43,6 +43,17 @@ function _oauth_build() {
|
||||
#npm run preview
|
||||
}
|
||||
|
||||
function _ai_conversation_build() {
|
||||
cd $d/ai-conversation
|
||||
nvm use 21
|
||||
npm i
|
||||
npm run build
|
||||
rm -rf $myblog/static/ai-assets
|
||||
mkdir -p $myblog/static/ai-assets
|
||||
cp -rf dist/assets/* $myblog/static/ai-assets/
|
||||
cp $d/ai-conversation/dist/index.html $myblog/templates/ai-conversation-assets.html
|
||||
}
|
||||
|
||||
function _server_comment() {
|
||||
cargo build
|
||||
cp -rf $ailog $CARGO_HOME/bin/
|
||||
@@ -64,6 +75,9 @@ case "${1:-serve}" in
|
||||
oauth|o)
|
||||
_oauth_build
|
||||
;;
|
||||
ai|a)
|
||||
_ai_conversation_build
|
||||
;;
|
||||
n)
|
||||
oauth=$d/oauth_old
|
||||
_oauth_build
|
||||
|
Reference in New Issue
Block a user