2019-09-29 11:01:25 +08:00
|
|
|
#! /bin/bash
|
|
|
|
|
|
|
|
cd ~/BootstrapAdmin
|
|
|
|
git pull
|
|
|
|
dotnet publish src/admin/Bootstrap.Admin -c Release
|
|
|
|
|
2019-09-29 23:16:09 +08:00
|
|
|
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
|
2019-09-29 23:16:09 +08:00
|
|
|
\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
|