refactor: 更新部署脚本

This commit is contained in:
Argo-Cloud 2020-11-18 17:07:14 +08:00
parent 988e71402c
commit bab4abe978
2 changed files with 5 additions and 5 deletions

View File

@ -4,10 +4,10 @@ cd ~/BootstrapAdmin
git pull git pull
dotnet publish src/admin/Bootstrap.Admin -c Release dotnet publish src/admin/Bootstrap.Admin -c Release
rm -f ~/BootstrapAdmin/src/admin/Bootstrap.Admin/bin/Release/netcoreapp3.1/publish/appsettings*.json rm -f ~/BootstrapAdmin/src/admin/Bootstrap.Admin/bin/Release/net5.0/publish/appsettings*.json
rm -f ~/BootstrapAdmin/src/admin/Bootstrap.Admin/bin/Release/netcoreapp3.1/publish/BootstrapAdmin.db rm -f ~/BootstrapAdmin/src/admin/Bootstrap.Admin/bin/Release/net5.0/publish/BootstrapAdmin.db
systemctl stop ba.admin systemctl stop ba.admin
\cp -fr ~/BootstrapAdmin/src/admin/Bootstrap.Admin/bin/Release/netcoreapp3.1/publish/* /usr/local/ba/admin/ \cp -fr ~/BootstrapAdmin/src/admin/Bootstrap.Admin/bin/Release/net5.0/publish/* /usr/local/ba/admin/
systemctl start ba.admin systemctl start ba.admin
systemctl status ba.admin -l systemctl status ba.admin -l

View File

@ -4,8 +4,8 @@ cd ~/BootstrapAdmin
git pull git pull
dotnet publish src/client/Bootstrap.Client -c Release dotnet publish src/client/Bootstrap.Client -c Release
rm -f ~/BootstrapAdmin/src/client/Bootstrap.Client/bin/Release/netcoreapp3.1/publish/appsettings*.json rm -f ~/BootstrapAdmin/src/client/Bootstrap.Client/bin/Release/net5.0/publish/appsettings*.json
systemctl stop ba.client systemctl stop ba.client
\cp -fr ~/BootstrapAdmin/src/client/Bootstrap.Client/bin/Release/netcoreapp3.1/publish/* /usr/local/ba/client/ \cp -fr ~/BootstrapAdmin/src/client/Bootstrap.Client/bin/Release/net5.0/publish/* /usr/local/ba/client/
systemctl start ba.client systemctl start ba.client
systemctl status ba.client -l systemctl status ba.client -l