Commit 83c8d288 authored by zL's avatar zL

脚本提交

parent bf783f6a
NODE_ENV = 'production'
VUE_APP_CURRENTMODE = 'sy_prod'
VUE_APP_VERSION = '0'
\ No newline at end of file
NODE_ENV = 'production'
VUE_APP_CURRENTMODE = 'sy_test'
VUE_APP_VERSION = '0'
\ No newline at end of file
......@@ -3,7 +3,10 @@
"version": "0.1.0",
"private": true,
"scripts": {
"dev:sy": "vue-cli-service serve --mode sy_test"
"dev:sy": "vue-cli-service serve --mode sy_test",
"build:sy_test": "vue-cli-service build --mode sy_test_build",
"build:sy_prod": "vue-cli-service build --mode sy_prod_build",
"deploy:sy": "vue-cli-service build --mode sy_test_build && bash ./sy.sh"
},
"dependencies": {
"@types/js-md5": "^0.4.2",
......
const configModules = {
// 重构--test
// 溯源>测试环境
"sy_test": {
CHAIN_BROWSER_URL_PREFIX: 'http://120.26.174.69:9032/',
INERFACE_URL_PREFIX: 'http://172.16.101.87:46789',
......@@ -15,5 +15,15 @@ const configModules = {
filename: 'index.html'
}
},
// 溯源>正式环境
"sy_prod": {
CHAIN_BROWSER_URL_PREFIX: 'https://cx.chain33.pro/',
INERFACE_URL_PREFIX: 'https://sy.chain33.pro/api',
INDEX: {
entry: './src/entry/sy/main.ts',
template: './public/sy/index.html',
filename: 'index.html'
}
},
}
exports.model = configModules[process.env.VUE_APP_CURRENTMODE]
\ No newline at end of file
rm -rf sy
mv dist sy
tar -czf sy.tar sy
rm -rf goSlc
scp sy.tar root@120.26.174.69:/usr/share/nginx/html/sy.tar
rm -rf sy.tar
ssh root@120.26.174.69 'cd /usr/share/nginx/html && rm -rf sy && tar -xzf sy.tar && rm -rf sy.tar'
echo 'done. 👉 http://120.26.174.69/sy/(http://120.26.174.69:8994/)'
\ No newline at end of file
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