修改脚本
This commit is contained in:
parent
82c1b3dd38
commit
d8740d8a6b
18
.env copy.production
Normal file
18
.env copy.production
Normal 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'
|
13
.env.staging
13
.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'
|
||||
VUE_APP_UPLOAD = 'http://promotion.kingsome.cn/interface/cos_upload'
|
||||
|
||||
# area api
|
||||
VUE_APP_MP = 'http://mp-test.kingsome.cn/api/open'
|
@ -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 ..
|
||||
|
Loading…
x
Reference in New Issue
Block a user