finan-code-push 1.0.2 → 1.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -8
- package/bin/script/management-sdk.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -292,19 +292,14 @@ Access key is stored at `~/.code-push.config`
|
|
|
292
292
|
|
|
293
293
|
## Server Configuration
|
|
294
294
|
|
|
295
|
+
CLI mặc định kết nối tới server Finan CodePush:
|
|
295
296
|
- **Dashboard:** https://cp.sobanhang.com (web UI để quản lý apps, lấy access key)
|
|
296
297
|
- **API Server:** https://cp-api.sobanhang.com (CLI kết nối tới đây)
|
|
297
298
|
|
|
298
|
-
|
|
299
|
+
Nếu muốn dùng server khác, truyền URL khi login:
|
|
299
300
|
|
|
300
301
|
```bash
|
|
301
|
-
finan-code-push login --accessKey YOUR_KEY
|
|
302
|
-
```
|
|
303
|
-
|
|
304
|
-
Or set environment variable:
|
|
305
|
-
|
|
306
|
-
```bash
|
|
307
|
-
export CODE_PUSH_SERVER_URL=https://your-server.com
|
|
302
|
+
finan-code-push login https://your-server.com --accessKey YOUR_KEY
|
|
308
303
|
```
|
|
309
304
|
|
|
310
305
|
## Requirements
|
|
@@ -28,7 +28,7 @@ class AccountManager {
|
|
|
28
28
|
OWNER: "Owner",
|
|
29
29
|
COLLABORATOR: "Collaborator",
|
|
30
30
|
};
|
|
31
|
-
static SERVER_URL = "
|
|
31
|
+
static SERVER_URL = "https://cp-api.sobanhang.com";
|
|
32
32
|
static API_VERSION = 2;
|
|
33
33
|
static ERROR_GATEWAY_TIMEOUT = 504; // Used if there is a network error
|
|
34
34
|
static ERROR_INTERNAL_SERVER = 500;
|