Skip to content

Commit bca7402

Browse files
christianalfonigitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent 31b84d1 commit bca7402

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

core/devtools.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,25 @@ npm install overmind-devtools concurrently
4242
```
4343
{% endcode %}
4444

45+
## Connecting from the application
46+
47+
When you create your application it will automatically connect through **localhost:3031**, meaning that everything should just work out of the box. If you need to change the port, connect the application over a network \(mobile development\) or similar, you can configure how the application connects:
48+
49+
```javascript
50+
importcreateOvermind } from 'overmind'
51+
import { config } from './overmind'
52+
53+
const overmind = createOvermind(config, {
54+
devtools: '10.0.0.1:3031'
55+
})
56+
```
57+
58+
### Connecting on Chromebook
59+
60+
ChromeOS does not expose localhost as normal. That means you need to connect with **penguin.termina.linux.test:3031**, or you can use the following plugin to forward **localhost:**
61+
62+
{% embed url="https://chrome.google.com/webstore/detail/connection-forwarder/ahaijnonphgkgnkbklchdhclailflinn/related?hl=en-US" %}
63+
4564
## Hot Module Replacement
4665

4766
A popular concept introduced by Webpack is [HMR](https://webpack.js.org/concepts/hot-module-replacement/). It allows you to make changes to your code without having to refresh. Overmind automatically supports HMR. That means when **HMR** is activated Overmind will make sure it updates and manages its state, actions and effects. Even the devtools will be updated as you make changes.

0 commit comments

Comments
 (0)