finan-code-push 1.0.1 → 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 +8 -11
- package/bin/script/management-sdk.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -29,7 +29,7 @@ finan-code-push release-react MyApp ios -d Staging
|
|
|
29
29
|
finan-code-push login --accessKey YOUR_ACCESS_KEY
|
|
30
30
|
```
|
|
31
31
|
|
|
32
|
-
Get your access key from the CodePush dashboard at https://cp
|
|
32
|
+
Get your access key from the CodePush dashboard at https://cp.sobanhang.com
|
|
33
33
|
|
|
34
34
|
### Check Current Session
|
|
35
35
|
|
|
@@ -292,18 +292,14 @@ Access key is stored at `~/.code-push.config`
|
|
|
292
292
|
|
|
293
293
|
## Server Configuration
|
|
294
294
|
|
|
295
|
-
|
|
295
|
+
CLI mặc định kết nối tới server Finan CodePush:
|
|
296
|
+
- **Dashboard:** https://cp.sobanhang.com (web UI để quản lý apps, lấy access key)
|
|
297
|
+
- **API Server:** https://cp-api.sobanhang.com (CLI kết nối tới đây)
|
|
296
298
|
|
|
297
|
-
|
|
299
|
+
Nếu muốn dùng server khác, truyền URL khi login:
|
|
298
300
|
|
|
299
301
|
```bash
|
|
300
|
-
finan-code-push login --accessKey YOUR_KEY
|
|
301
|
-
```
|
|
302
|
-
|
|
303
|
-
Or set environment variable:
|
|
304
|
-
|
|
305
|
-
```bash
|
|
306
|
-
export CODE_PUSH_SERVER_URL=https://your-server.com
|
|
302
|
+
finan-code-push login https://your-server.com --accessKey YOUR_KEY
|
|
307
303
|
```
|
|
308
304
|
|
|
309
305
|
## Requirements
|
|
@@ -339,8 +335,9 @@ finan-code-push patch MyApp Production -r 100%
|
|
|
339
335
|
|
|
340
336
|
## Links
|
|
341
337
|
|
|
342
|
-
- **CodePush
|
|
338
|
+
- **CodePush Dashboard:** https://cp.sobanhang.com
|
|
343
339
|
- **API Server:** https://cp-api.sobanhang.com
|
|
340
|
+
- **Source Repository:** https://code.finan.one/finan-fe/code-push-server
|
|
344
341
|
|
|
345
342
|
## License
|
|
346
343
|
|
|
@@ -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;
|