fix: align Tauri development server with configured port

This commit is contained in:
tothbt committed 2026-10-24 10:53:08 +02:00
1 parent 46bfa09745
commit e7d9fe0efb
3 files changed
+3 -3

No files matched your search

+1 -1
View File
@@ -99,7 +99,7 @@ Do not manually edit generated output or installed dependencies:
- Run linting: `npm run lint` - Run linting: `npm run lint`
- Run Tauri CLI commands: `npm run tauri -- <command>` - Run Tauri CLI commands: `npm run tauri -- <command>`
Tauri development intentionally uses port `8103`. `src-tauri/tauri.conf.json` expects that port, so its `beforeDevCommand` must start Ionic on `8103`; the current `npm start` script does not explicitly select it. Verify the full `npm run tauri dev` flow before claiming it works. Tauri development intentionally uses port `8103`. `src-tauri/tauri.conf.json` expects that port, so its `beforeDevCommand` starts the project's Angular CLI with `serve --host=0.0.0.0 --port=8103`. Keep the command aligned with `devUrl`. Verify the full `npm run tauri dev` flow before claiming it works.
## Release versioning ## Release versioning
+1 -1
View File
@@ -137,7 +137,7 @@ nvm use lts/jod && npm run tauri dev
nvm use lts/jod && npm run tauri build nvm use lts/jod && npm run tauri build
``` ```
Tauri development intentionally expects the frontend at `http://localhost:8103`. `devUrl` only tells Tauri where to connect; the Ionic command must also listen on port `8103`. The current `npm start` script does not explicitly select that port, so verify the complete development flow when changing Tauri or serve configuration. Tauri development intentionally expects the frontend at `http://localhost:8103`. `devUrl` tells Tauri where to connect, and `beforeDevCommand` runs `npm run ng -- serve --host=0.0.0.0 --port=8103` to serve the frontend on the matching port without opening a browser. This uses the project's Angular CLI and does not require a global Ionic CLI installation. Keep these settings aligned when changing Tauri or serve configuration.
The desktop wrapper is under `src-tauri/`. Do not edit generated `src-tauri/target/` or `src-tauri/gen/` content. The desktop wrapper is under `src-tauri/`. Do not edit generated `src-tauri/target/` or `src-tauri/gen/` content.
+1 -1
View File
@@ -7,7 +7,7 @@
"build": { "build": {
"frontendDist": "../www", "frontendDist": "../www",
"devUrl": "http://localhost:8103", "devUrl": "http://localhost:8103",
"beforeDevCommand": "npm start", "beforeDevCommand": "npm run ng -- serve --host=0.0.0.0 --port=8103",
"beforeBuildCommand": "ionic build" "beforeBuildCommand": "ionic build"
}, },
"app": { "app": {