Skip to content

armgit / macro

Public Imported from GitHub
0

Macro is a unified workspace for teams: email, chat, docs, tasks, agents, calls, and CRM — @-linked together with shared AI memory.

chore: port maxxing for mobile dev (#6055)

Peter Chinman26e12fc20b54
diff --git a/apps/web/justfile b/apps/web/justfile
index c40ea995f6..f65a7daa05 100644
--- a/apps/web/justfile
+++ b/apps/web/justfile
@@ -1,6 +1,14 @@
-# iOS: dev-facing, for testing in Simulator
+# iOS: dev-facing, for testing in Simulator. Honors PORT like the web dev
+# server (`PORT=3001 just ios-dev`): the vite server picks PORT up through
+# beforeDevCommand's environment, and the --config merge points the webview's
+# devUrl at the same port.
ios-dev: ios-prepare
- cd tauri/src-tauri && cargo tauri ios dev --open -- --no-default-features
+ #!/usr/bin/env bash
+ set -euo pipefail
+ PORT="${PORT:-3000}"
+ cd tauri/src-tauri && cargo tauri ios dev --open \
+ --config "{\"build\":{\"devUrl\":\"http://localhost:${PORT}\"}}" \
+ -- --no-default-features
# iOS: prod-facing build, with bundle auto-update turned off, for testing locally on actual iPhone
ios-build-no-update: ios-prepare