code-push-server Qiniu cloud configuration process

1, First go to the Qiniu official website to register an account http://www.qiniu.com/

 

2. Create a storage space after logging in, and configure the following code in code-push-server confing/config.js after creating the results

 qiniu: {

    accessKey: "6wq_HCr************BzEaJInVY-BfCFpKsl4DOL",

    secretKey: "K-S93Jl****************zc3g4pAnYbWILnhT3JAk8",

    bucketName: "code-push-test",

    downloadUrl: "http://o**********z.bkt.clouddn.com" // Binary files download host address.

  },

Note that accessKey and secretKey can be viewed in personal information. DownloadUrl needs to be added with http://, otherwise an unknown error occurred error will be reported. After modifying the configuration information, restart code-push-server and re-execute code-push login

 

3. Modify storageType to qiniu

storageType: "qiniu",

 

4. Configure the code push server address in MainApplication.java as the code push server address

This is configured on this machine, so the address is http://192.168.0.7:3000/

 

5. Start code-push-server, code-push login http://192.168.0.7:3000/ Use the default account admin 123456 given by the blogger

 

6. The following operation process is the same as local deployment.

 

You can refer to another article on local deployment:

http://222xiaohuan.iteye.com/admin/blogs/2347617

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326377533&siteId=291194637