BootstrapAdmin/deploy-admin.sh

14 lines
485 B
Bash
Raw Permalink Normal View History

2019-09-29 11:01:25 +08:00
#! /bin/bash
cd ~/BootstrapAdmin
git pull
dotnet publish src/admin/Bootstrap.Admin -c Release
rm -f ~/BootstrapAdmin/src/admin/Bootstrap.Admin/bin/Release/netcoreapp3.0/publish/appsettings*.json
rm -f ~/BootstrapAdmin/src/admin/Bootstrap.Admin/bin/Release/netcoreapp3.0/publish/BootstrapAdmin.db
2019-09-29 11:01:25 +08:00
systemctl stop ba.admin
\cp -fr ~/BootstrapAdmin/src/admin/Bootstrap.Admin/bin/Release/netcoreapp3.0/publish/* /usr/local/ba/admin/
2019-09-29 11:01:25 +08:00
systemctl start ba.admin
systemctl status ba.admin -l