Closed hailiang-wang closed 9 years ago
地址 http://www.qiniu.com/
bucket for wildfire staging -
https://portal.qiniu.com/bucket/wildfirepro/index
登录名:hailiang.hl.wang@gmail.com 密码:Cawtandewk
使用 qrsync http://developer.qiniu.com/docs/v6/tools/qrsync.html
cd wildfire/client
qrsync production.qiniu.json
production.qiniu.json
{ "src": "/root/git/wildfire/public/ionic/www", "dest": "qiniu:access_key=MuDBhibABT6T85B1mA5bqoolYVCmGUizJ2CMS_Wn&secret_key=x3W_dZVS75w6HraQciomlDfn_NC2hqPl4qfB1rF9&bucket=wildfirepro&key_prefix=/", "deletable": 0, "debug_level": 0 }
grunt compress
将压缩好的js,css脚本的路径都改成七牛的路径
T.T
@zqhorse 请充一下值,完成CDN 域名绑定。 thanks.
是的,这个需要10块钱认证费,开好了绑个域名
上面的命令执行结束,文件被影射到这样的路径中。
{
"src": "/root/git/wildfire/client/www",
"dest": "qiniu:access_key=9MboRdgFktNfebBxO99cVeR6oumOMYeDCkjTH5ek&secret_key=6-zwXgAB3DV2u32eZ6NRN05lgtcXbqOoSM0IGX7i&bucket=wildfire-gges&key_prefix=/",
"deletable": 0,
"debug_level": 0
}
-->
http://7xj83h.com2.z0.glb.qiniucdn.com/@/index.html#/tab/index/
问题是,不应该有_@_的!
将 &key_prefix=/ 去掉 就 变成 http://7xj83h.com2.z0.glb.qiniucdn.com/index.html#/tab/index/ 了
Description
for the client side, they mostly are static files, css, html and javascript.
Solution
Use qiniu cdn
Use
loader
module fromnpm
.https://www.npmjs.com/package/loader
Use index.ejs template to check a config flag.
@gissues:{"order":50,"status":"inprogress"}