mirror of
https://github.com/aljazceru/pear-docs.git
synced 2025-12-18 06:54:22 +01:00
Convert all howtos to use pear run --dev (#152)
This commit is contained in:
@@ -50,7 +50,7 @@ server.listen(keyPair).then(() => {
|
||||
Pear.teardown(() => server.close())
|
||||
```
|
||||
|
||||
Open the `server-app` with `pear dev`.
|
||||
Open the `server-app` with `pear run --dev .`.
|
||||
|
||||
Create the `client-app` project with the following commands:
|
||||
|
||||
@@ -81,7 +81,7 @@ Pass the key to the client:
|
||||
|
||||
```
|
||||
cd client-app
|
||||
pear dev -- <SUPPLY KEY HERE>
|
||||
pear run --dev . -- <SUPPLY KEY HERE>
|
||||
```
|
||||
|
||||
The `client-app` will spin up a client, and the public key copied earlier must be supplied as a command line argument for connecting to the server. The client process will log `got connection` into the console when it connects to the server.
|
||||
|
||||
Reference in New Issue
Block a user