fuchengwei / deploy-cli-service

前端自动部署脚手架服务
MIT License
428 stars 87 forks source link

希望能支持动静分离 #27

Closed guohui666 closed 3 years ago

guohui666 commented 3 years ago

目前公司正式环境是将index.html放到服务器,其他静态文件全部放到阿里oss,要是能支持index传服务器,其他文件传oss就好了

fuchengwei commented 3 years ago

你可以把正式环境的 distPath 配置为 dist/static 就可以了

guohui666 commented 3 years ago

这不就反了嘛?是想要将static 传oss上,能集成ossutil那就完美了,使用ossutil上传static到oss, 单独将index.html传到自己的服务器

guohui666 commented 3 years ago

@fuchengwei 而且发现个问题,打包上传后修改时间对不上 image 实际上我是11.27发布的,修改时间往后倒退了8个小时,是时区的问题吗?

fuchengwei commented 3 years ago

@fuchengwei 而且发现个问题,打包上传后修改时间对不上 image 实际上我是11.27发布的,修改时间往后倒退了8个小时,是时区的问题吗?

这应该是你的服务器时区的问题

fuchengwei commented 3 years ago

这不就反了嘛?是想要将static 传oss上,能集成ossutil那就完美了,使用ossutil上传static到oss, 单独将index.html传到自己的服务器

oss 的目前支持不了 单独传 index.html 倒是可以