编译
This commit is contained in:
+6
-6
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
echo "开始"
|
echo "开始"
|
||||||
rm -rf ./web_huangguo_h5 ./web_huangguo_h5.tar.gz
|
rm -rf ./web_hgtv_h5 ./web_hgtv_h5.tar.gz
|
||||||
GOOS=linux GOARCH=amd64 go build -o web_huangguo_h5
|
GOOS=linux GOARCH=amd64 go build -o web_hgtv_h5
|
||||||
tar zvcf web_huangguo_h5.tar.gz web_huangguo_h5 templates/ static/ \
|
tar zvcf web_hgtv_h5.tar.gz web_hgtv_h5 templates/ static/ \
|
||||||
--exclude='templates/page/sitemaps/sitemap.xml' \
|
--exclude='templates/page/sitemaps/sitemap.xml' \
|
||||||
--exclude='templates/page/sitemaps/sitemap-*.xml' \
|
--exclude='templates/page/sitemaps/sitemap-*.xml' \
|
||||||
--exclude='templates/page/rss.xml' \
|
--exclude='templates/page/rss.xml' \
|
||||||
@@ -10,7 +10,7 @@ tar zvcf web_huangguo_h5.tar.gz web_huangguo_h5 templates/ static/ \
|
|||||||
--exclude='templates/page/llms-full.txt'
|
--exclude='templates/page/llms-full.txt'
|
||||||
|
|
||||||
|
|
||||||
scp web_huangguo_h5.tar.gz root@172.104.166.87:/data/uzip
|
scp web_hgtv_h5.tar.gz root@172.104.166.87:/data/uzip
|
||||||
ssh root@172.104.166.87 "/server/web_huangguo/h5/up_app.sh"
|
ssh root@172.104.166.87 "/server/web_hgtv/h5/up_app.sh"
|
||||||
|
|
||||||
rm -rf ./web_huangguo_h5 ./web_huangguo_h5.tar.gz
|
rm -rf ./web_hgtv_h5 ./web_hgtv_h5.tar.gz
|
||||||
Reference in New Issue
Block a user