forked from vhaudiquet/rhema-together
docs: describe a local-network run
This commit is contained in:
1 parent
0035f4e031
commit
bd3aed67b4
1 file changed
+7
@@ -59,6 +59,13 @@ create the first account. The server log also prints a one-time setup
|
|||||||
link, in case someone already opened the app before the database
|
link, in case someone already opened the app before the database
|
||||||
existed.
|
existed.
|
||||||
|
|
||||||
|
For a local-network test, bind `0.0.0.0:7800` and set
|
||||||
|
`TOGETHER_PUBLIC_URL` to the machine's LAN address, for example
|
||||||
|
`http://10.4.1.222:7800`. Invite links and cookies then use that
|
||||||
|
address. Preview hosts need a name that resolves from the other device;
|
||||||
|
`TOGETHER_PREVIEW_ORIGIN=http://preview.10.4.1.222.nip.io:7800` works
|
||||||
|
when the network can reach a public DNS resolver.
|
||||||
|
|
||||||
During client development, run `pnpm dev` in `web/` (port 3000) and
|
During client development, run `pnpm dev` in `web/` (port 3000) and
|
||||||
keep the server on port 7800; the Nuxt dev proxy forwards `/api`,
|
keep the server on port 7800; the Nuxt dev proxy forwards `/api`,
|
||||||
including the terminal WebSocket.
|
including the terminal WebSocket.
|
||||||
|
|||||||
Reference in new issue
Block a user