rockq-org / austack-core

API, Console, Test of austack
32 stars 8 forks source link

cdn for production #232

Closed hailiang-wang closed 9 years ago

hailiang-wang commented 9 years ago

Description

qiniu 账号

https://portal.qiniu.com
hailiang.hl.wang@gmail.com / Cawtandewk

bucket: austackprod1

Solution

create the bucket

which is: austackprod1

request audit

image

Install qiniu client in the production

http://developer.qiniu.com/docs/v6/tools/qrsync.html

image

add config file

Something like this

{
  "src": "/root/git/austack-core/dist",
  "dest": "qiniu:access_key=<AccessKey>&secret_key=<SecretKey>&bucket=austackprod1&key_prefix=/&threshold=<Threshold>",
  "deletable": 0,
  "debug_level": 1
}

upload files

qrsync YOUR_FILE
hailiang-wang commented 9 years ago

image

hailiang-wang commented 9 years ago

image

hailiang-wang commented 9 years ago
~/bin/qrsync qiniu_cfg/austack-prod1-client.json