修改脚本

This commit is contained in:
yulixing 2019-09-16 15:32:04 +08:00
parent 82c1b3dd38
commit d8740d8a6b
3 changed files with 27 additions and 7 deletions

18
.env copy.production Normal file
View File

@ -0,0 +1,18 @@
# just a flag
ENV = 'production'
# base api
VUE_APP_BASE_API = 'http://promotion.kingsome.cn/interface'
# ldap api
VUE_APP_LDAP_API = 'https://ops.kingsome.cn/api'
VUE_APP_LDAP_USER = 'ops-apiuser'
VUE_APP_LDAP_PWD = 'hhsxafTuUtVV'
# upload
VUE_APP_UPLOAD = 'http://promotion.kingsome.cn/interface/cos_upload'
# area api
VUE_APP_MP = 'http://mp.kingsome.cn/api/open'

View File

@ -1,17 +1,18 @@
NODE_ENV = production
# just a flag
ENV = 'staging'
ENV = 'production'
# base api
VUE_APP_BASE_API = '/stage-api'
VUE_APP_BASE_API = 'http://154.8.214.202:6015/interface'
# ldap api
VUE_APP_LDAP_API = '/ldap-api'
VUE_APP_LDAP_API = 'https://ops.kingsome.cn/api'
VUE_APP_LDAP_USER = 'ops-apiuser'
VUE_APP_LDAP_PWD = 'hhsxafTuUtVV'
# upload
VUE_APP_UPLOAD = '/upload'
VUE_APP_UPLOAD = 'http://promotion.kingsome.cn/interface/cos_upload'
# area api
VUE_APP_MP = 'http://mp-test.kingsome.cn/api/open'

View File

@ -5,7 +5,8 @@ source /etc/profile
npm install --prefer-offline --loglevel info --unsafe-perm=true --allow-root >> boundle.log
echo 'copy node_modules to /data/publish/node_packages' >> boundle.log
npm run build:prod
#npm run build:prod
npm run build:stage
cd ./dist/ && tar -zcvf pop-sys.tar.gz ./
cd ..