From d8740d8a6bee766a5f3a5b47b6e21a331a15786d Mon Sep 17 00:00:00 2001 From: yulixing Date: Mon, 16 Sep 2019 15:32:04 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env copy.production | 18 ++++++++++++++++++ .env.staging | 13 +++++++------ boundle.sh | 3 ++- 3 files changed, 27 insertions(+), 7 deletions(-) create mode 100644 .env copy.production diff --git a/.env copy.production b/.env copy.production new file mode 100644 index 0000000..10c61b5 --- /dev/null +++ b/.env copy.production @@ -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' \ No newline at end of file diff --git a/.env.staging b/.env.staging index 131982f..e321117 100644 --- a/.env.staging +++ b/.env.staging @@ -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' \ No newline at end of file +VUE_APP_UPLOAD = 'http://promotion.kingsome.cn/interface/cos_upload' + +# area api +VUE_APP_MP = 'http://mp-test.kingsome.cn/api/open' \ No newline at end of file diff --git a/boundle.sh b/boundle.sh index 48bc210..8e18195 100644 --- a/boundle.sh +++ b/boundle.sh @@ -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 ..