Skip to content

Commit 6482510

Browse files
committed
server ports doc
1 parent f9c80a5 commit 6482510

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

docs/en/manuals/editor.md

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,21 @@ You can also get access to editor logs while the editor is running if it is star
175175
$ > ./path/to/Defold.app/Contents/MacOS/Defold
176176
```
177177

178+
## Editor server
179+
180+
When the editor opens a project, it will start a web server on a random port. The server may be used to interact with the editor from other applications. Since 1.11.0, the port is written to the `.internal/editor.port` file.
181+
182+
Additionally, since 1.11.0 the editor executable has a command line option `--port` (or `-p`), which allows specifying the port during launch, e.g.::
183+
```shell
184+
# on Windows
185+
.\Defold.exe --port 8181
186+
187+
# on Linux:
188+
./Defold --port 8181
189+
190+
# on macOS:
191+
./Defold.app/Contents/MacOS/Defold --port 8181
192+
```
178193

179194
## FAQ
180195
:[Editor FAQ](../shared/editor-faq.md)

0 commit comments

Comments
 (0)