Ver Fonte

Merge branch 'master' of ssh://gogs.yinbin.ink:30004/didong/owl-admin

刘学玺 há 4 meses atrás
pai
commit
6d61f07334
2 ficheiros alterados com 24 adições e 10 exclusões
  1. 10 10
      doc/部署文档/马杀鸡.md
  2. 14 0
      script/ansible/bin/mydeploy.ps1

+ 10 - 10
doc/部署文档/马杀鸡.md

@@ -1,15 +1,15 @@
 ### 服务器账号信息
 
-- IP: 192.168.110.85
-- 用户名:php
-- 密码:Php.123456
+-   IP: 192.168.110.85
+-   用户名:php
+-   密码:Php.123456
 
 > 注意事项,:
 
-- 执行命令时如果报网络错误则需要开启代理:
-  - `export https_proxy=http://192.168.110.10:7897 http_proxy=http://192.168.110.10:7897 all_proxy=socks5://192.168.110.10:7897`
-- 如需关闭代理:
-  - `export https_proxy= http_proxy= all_proxy=`
+-   执行命令时如果报网络错误则需要开启代理:
+    -   `export https_proxy=http://192.168.110.10:7897 http_proxy=http://192.168.110.10:7897 all_proxy=socks5://192.168.110.10:7897`
+-   如需关闭代理:
+    -   `export https_proxy= http_proxy= all_proxy=`
 
 ### 配置 zsh 等
 
@@ -65,6 +65,6 @@ wget -O install.sh https://download.bt.cn/install/install_lts.sh && sudo bash in
 bt
 ```
 
-- 内网面板地址: https://192.168.110.85:2122/btwest
-- username: niusen
-- password: Niusen.123456
+-   内网面板地址: https://192.168.110.85:2122/btwest
+-   username: niusen
+-   password:Php.123456

+ 14 - 0
script/ansible/bin/mydeploy.ps1

@@ -0,0 +1,14 @@
+# 切换到脚本目录
+
+# 获取脚本所在目录的绝对路径
+$scriptPath = Split-Path -Parent $MyInvocation.MyCommand.Path
+
+# 切换到项目根目录
+Set-Location (Split-Path -Parent (Split-Path -Parent $scriptPath))
+
+# 使用 scp 命令复制,排除 vendor 目录
+$sourceDir = "D:\work\xiaoding\owl-admin"
+$targetDir = "root@192.168.110.85:/www/wwwroot/xiaoding"
+
+# 执行 scp 命令,使用正确的语法
+scp -r $sourceDir/* $targetDir