deploy:修改部署设置
This commit is contained in:
parent
55f7e7c84f
commit
b7deb63902
9
build.sh
9
build.sh
@ -1,11 +1,10 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
# 配置统计key
|
# 替换为自己的部署地址
|
||||||
export VUE_APP_QIEZI_HOST="https://fleyx.com";
|
export VUE_APP_QIEZI_HOST="http://localhost:8080";
|
||||||
export VUE_APP_QIEZI_KEY="aab3cad381f54ca5b7b9abeb2e09320a";
|
# 替换为自己申请的key
|
||||||
|
export VUE_APP_QIEZI_KEY="d862c12a68ad4d579c6066ac2f064a07";
|
||||||
|
|
||||||
base=$(cd "$(dirname "$0")";pwd)
|
base=$(cd "$(dirname "$0")";pwd)
|
||||||
echo $VUE_APP_QIEZI_HOST
|
|
||||||
echo $VUE_APP_QIEZI_KEY
|
|
||||||
#
|
#
|
||||||
# 前端打包
|
# 前端打包
|
||||||
docker run -it --rm --user ${UID} -e VUE_APP_QIEZI_HOST=${VUE_APP_QIEZI_HOST} -e VUE_APP_QIEZI_KEY=${VUE_APP_QIEZI_KEY} -v $base/qiezi_front:/opt/front node:lts-buster-slim bash -c "cd /opt/front && yarn --registry https://registry.npm.taobao.org && yarn build"
|
docker run -it --rm --user ${UID} -e VUE_APP_QIEZI_HOST=${VUE_APP_QIEZI_HOST} -e VUE_APP_QIEZI_KEY=${VUE_APP_QIEZI_KEY} -v $base/qiezi_front:/opt/front node:lts-buster-slim bash -c "cd /opt/front && yarn --registry https://registry.npm.taobao.org && yarn build"
|
||||||
|
2
qiezi_front/.gitignore
vendored
2
qiezi_front/.gitignore
vendored
@ -21,3 +21,5 @@ pnpm-debug.log*
|
|||||||
*.njsproj
|
*.njsproj
|
||||||
*.sln
|
*.sln
|
||||||
*.sw?
|
*.sw?
|
||||||
|
package-lock.json
|
||||||
|
yarn.lock
|
||||||
|
26168
qiezi_front/package-lock.json
generated
26168
qiezi_front/package-lock.json
generated
File diff suppressed because it is too large
Load Diff
BIN
qiezi_front/public/indexResource/favicon.ico
Normal file
BIN
qiezi_front/public/indexResource/favicon.ico
Normal file
Binary file not shown.
After Width: | Height: | Size: 4.2 KiB |
@ -1 +1,33 @@
|
|||||||
<!-- 真正的主页 -->
|
<!DOCTYPE html>
|
||||||
|
<html lang="">
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
||||||
|
<link rel="icon" href="/favicon.ico" />
|
||||||
|
<title>茄子统计</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div class="app">
|
||||||
|
免费UV,PV统计,可自行部署,也可直接使用。使用文档见:<a href="/manage/">开始使用</a>
|
||||||
|
</div>
|
||||||
|
<div style="text-align: center;">
|
||||||
|
<div id="qieziStatisticHtmlHostPv" style="display: none;">页面访问次数:<span id="qieziStatisticHtmlHostPvValue"></span>次 </div>
|
||||||
|
<div id="qieziStatisticHtmlHostUv" style="display: none;"> 总访客数:<span id="qieziStatisticHtmlHostUvValue"></span>人</div>
|
||||||
|
</div>
|
||||||
|
<script>
|
||||||
|
//设置统计的host,key
|
||||||
|
window.qieziStatisticHost="http://localhost:8080";
|
||||||
|
window.qieziStatisticKey="d862c12a68ad4d579c6066ac2f064a07";
|
||||||
|
</script>
|
||||||
|
<script src="./qieziStatistic_v1.js" type="text/javascript"></script>
|
||||||
|
<style>
|
||||||
|
.app{
|
||||||
|
width:80%;
|
||||||
|
margin: 0 auto;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user