welog icon indicating copy to clipboard operation
welog copied to clipboard

项目启动时初始化Image数据问题

Open qdsang opened this issue 9 years ago • 1 comments

目前使用的 https://github.com/CollectionFS/Meteor-CollectionFS 插件做Image存储 希望能在系统启动的时候初始化几张照片,默认的几张照片放在项目目录下。 请问 @kevingzhang 老师这种场景应该什么设计实现方案?

qdsang avatar Mar 04 '15 04:03 qdsang

如果是我来做, 我就在 S3 放几张照片. 然后把 URL 送给前端直接显示在页面上. 这样从用户浏览器直接去 S3去拿节省 Meteor 服务器的负担. 如果一定要本地放, 放在/public 目录中. 比如 /public/img/picture1.jpg, 然后 http://abc.com/img/picture1.jpg 就是你的图片. 但是不建议这样, 是浪费 meteor 资源

2015-03-03 20:07 GMT-08:00 蹬 [email protected]:

目前使用的 https://github.com/CollectionFS/Meteor-CollectionFS 插件做Image存储 目前希望能在系统启动的时候初始化几张照片,默认的几张照片放在项目目录下。 请问keving老师这种场景应该什么设计实现方案?

— Reply to this email directly or view it on GitHub https://github.com/kevingzhang/welog/issues/28.

╭︿︿︿╮ {/ o o /} ( (oo) ) Kevin G. Zhang :) ︶ ︶︶

kevingzhang avatar Mar 04 '15 19:03 kevingzhang