Commit f39b4e31 authored by yyh's avatar yyh

环境 cs sy

parent f92adf73
NODE_ENV=production
VUE_APP_SERVER=/api
VUE_APP_BROWSER=https://csdj.chain33.pro
VUE_APP_NAME=33慈善
VUE_APP_CATEGORY=cs
\ No newline at end of file
NODE_ENV=production
VUE_APP_SERVER=/api
VUE_APP_BROWSER=https://cx.chain33.pro
\ No newline at end of file
VUE_APP_BROWSER=https://cx.chain33.pro
VUE_APP_NAME=上链查溯源
VUE_APP_CATEGORY=sy
\ No newline at end of file
NODE_ENV=production
VUE_APP_SERVER=/api
VUE_APP_BROWSER=http://47.114.159.142:9036
VUE_APP_NAME=33慈善
VUE_APP_CATEGORY=cs
\ No newline at end of file
NODE_ENV=production
VUE_APP_SERVER=/api
VUE_APP_BROWSER=http://47.114.159.142:9033
\ No newline at end of file
VUE_APP_BROWSER=http://47.114.159.142:9033
VUE_APP_NAME=上链查溯源
VUE_APP_CATEGORY=sy
\ No newline at end of file
......@@ -16,26 +16,4 @@ rm -rf tracesourcemb
scp tracesourcemb.tar root@120.26.174.69:/usr/share/nginx/html/tracesourcemb.tar
rm -rf tracesourcemb.tar
ssh root@120.26.174.69 'cd /usr/share/nginx/html && rm -rf tracesourcemb && tar -xzf tracesourcemb.tar && rm -rf tracesourcemb.tar'
echo 'done. 👉 http://120.26.174.69:9090'
server {
listen 9090;
root /usr/share/nginx/html/goSlc;
index index.html index.htm index.nginx-debian.html;
client_max_body_size 20m;
client_body_buffer_size 128k;
fastcgi_intercept_errors on;
location / {
# 移动、pc 设备适配
if ($http_user_agent ~* '(Android|webOS|iPhone|iPod|BlackBerry)') {
root /usr/share/nginx/html/tracesourcemb
}
index index.html;
try_files $uri $uri/ /index.html;
gzip_static on;
}
location /api/ {
proxy_pass http://118.89.159.234:46789;
}
}
\ No newline at end of file
echo 'done. 👉 http://120.26.174.69:9090'
\ No newline at end of file
# 1.需要(git )bash
# 2.如没有没pub文件,使用bash本地生成公私钥对: ssh-keygen;
# 3.ssh-copy-id上传公钥到服务器: ssh-copy-id -i C:/Users/dell/.ssh/id_rsa.pub root@47.99.88.168
# 4.测试: test with 'ssh root@47.99.88.168'
# 如果依然需要密码
# vim /etc/ssh/ssh_config
# 修改
# Host *
# RSAAuthentication yes
# PubkeyAuthentication yes
# GSSAPIAuthentication yes
# 其中,RSAAuthentication yes 与 PubkeyAuthentication yes 是本文件的新增内容。
mv dist gocsmb
tar -czf gocsmb.tar gocsmb
rm -rf gocsmb
scp gocsmb.tar root@120.26.174.69:/usr/share/nginx/html/gocsmb.tar
rm -rf gocsmb.tar
ssh root@120.26.174.69 'cd /usr/share/nginx/html && rm -rf gocsmb && tar -xzf gocsmb.tar && rm -rf gocsmb.tar'
echo 'done. 👉 http://120.26.174.69:9091'
\ No newline at end of file
......@@ -5,10 +5,13 @@
"scripts": {
"serve:sy": "vue-cli-service serve --mode developmentsy",
"serve:cs": "vue-cli-service serve --mode developmentcs",
"build": "vue-cli-service build",
"buildtest": "vue-cli-service build --mode test",
"build:sy": "vue-cli-service build --mode testsy",
"build:cs": "vue-cli-service build --mode testcs",
"build": "vue-cli-service build --mode productionsy",
"build:csprod": "vue-cli-service build --mode productioncs",
"lint": "vue-cli-service lint",
"deploy2test": "npm run buildtest && sh deploy2Test.sh"
"deploysy2test": "npm run build:sy && sh deploy2Test.sh",
"deploycs2test": "npm run build:cs && sh deploycs2Test.sh"
},
"dependencies": {
"axios": "^0.19.2",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment