Skip to content

Commit 94e6c84

Browse files
chore: 更新部署脚本
Co-Authored-By: Mr Lu <[email protected]>
1 parent 83c1a54 commit 94e6c84

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

scripts/linux/deploy.sh

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
#! /bin/bash
2+
3+
echo "clean env"
4+
5+
sudo rm -fr BootstrapBlazor
6+
7+
sudo rm -fr /usr/local/ba
8+
9+
echo "apt update"
10+
sudo apt update
11+
12+
echo "install git"
13+
echo yes|sudo apt install git
14+
15+
echo "install BootstrapBlazor"
16+
sudo git clone https://gitee.com/LongbowEnterprise/BootstrapBlazor.git
17+
18+
echo "make directory BA/Blazor"
19+
sudo mkdir /usr/local/ba
20+
sudo mkdir /usr/local/ba/blazor
21+
22+
echo "copy scripts"
23+
sudo cp BootstrapBlazor/scripts/linux/deploy-blazor.sh deploy-blazor.sh
24+
sudo cp BootstrapBlazor/scripts/linux/ba.blazor.service /usr/lib/systemd/system/ba.blazor.service
25+
26+
echo "install ba.blazor.service"
27+
sudo systemctl enable ba.blazor
28+
29+
echo "install nginx"
30+
echo yes|sudo apt install nginx
31+
32+
echo "copy nginx config"
33+
sudo cp BootstrapBlazor/scripts/linux/nginx.conf /etc/nginx/
34+
35+
echo "copy cert"
36+
sudo mkdir /etc/nginx/cert
37+
sudo cp BootstrapBlazor/scripts/linux/cert/* /etc/nginx/cert/

scripts/linux/remove.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
#! /bin/bash
2+
3+
sudo rm -fr BootstrapBlazor
4+
5+
sudo rm -fr /usr/local/ba

0 commit comments

Comments
 (0)