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 ..