plaoc serve url
August 11, 2023
- Service
Starts local server for developer tool to download Plaoc Apps. The parameter provided to serve is a url string.
plaoc serve url
Example
For a project directory structure like:
- root
- package.json
- src
- manifest.json // Manifest file
Start project with vite:
npx vite --host
Terminal will output:
VITE v4.3.9 ready in 277 ms
➜ Local: http://localhost:5173/
➜ Network: http://192.168.2.6:5173/
➜ Network: http://198.18.0.1:5173/
➜ press h to show help
Open another terminal and run plaoc cli:
plaoc serve http://localhost:5173/
Terminal will output:
metadata: http://127.0.0.1:8096/metadata.json
metadata: http://192.168.2.6:8096/metadata.json
metadata: http://198.18.0.1:8096/metadata.json
Works with developer tool for local Plaoc App debugging.
- For macbook m1, run in command line:
open /Users/xxxpath/dweb-browser-devtools.app --args -- --start install --url http://127.0.0.1:8096/metadata.json
If Plaoc App project is already complete, can also pass directory parameter to plaoc serve to work with developer tool. See directory parameter for details.
Related Links
Powered by Waline v2.13.0