Skip to content

Commit 4ce2feb

Browse files
authored
Merge pull request #284 from AlaaAttya/master
Adding missing docs for parse migration
2 parents 194d5ba + da22b3b commit 4ce2feb

File tree

1 file changed

+9
-2
lines changed

1 file changed

+9
-2
lines changed

README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,17 +45,24 @@ After including the required files from the SDK, you need to initalize the Parse
4545
```php
4646
ParseClient::initialize( $app_id, $rest_key, $master_key );
4747
// Users of Parse Server will need to point ParseClient at their remote URL and Mount Point:
48-
ParseClient::setServerURL('https://my-parse-server.com','parse');
48+
ParseClient::setServerURL('https://my-parse-server.com:port','parse');
4949
```
5050

5151
If your server does not use or require a REST key you may initialize the ParseClient as follows, safely omitting the REST key:
5252

5353
```php
5454
ParseClient::initialize( $app_id, null, $master_key );
5555
// Users of Parse Server will need to point ParseClient at their remote URL and Mount Point:
56-
ParseClient::setServerURL('https://my-parse-server.com','parse');
56+
ParseClient::setServerURL('https://my-parse-server.com:port','parse');
5757
```
5858

59+
Notice
60+
Parse server's default port is `1337` and the second parameter `parse` is the route prefix of your parse server.
61+
62+
For example if your parse server's url is `http://example.com:1337/parse` then you can set the server url using the following snippet
63+
64+
`ParseClient::setServerURL('https://example.com:1337','parse');`
65+
5966
Usage
6067
-----
6168

0 commit comments

Comments
 (0)