Call the local process the local engine on Linux and macOS
The Windows launcher already avoids the word "server" in what users read, and the macOS health probe now uses curl --noproxy so starting offline cannot stall on a system proxy. The app windows also ignore proxies, which only ever point at 127.0.0.1.
This commit is contained in:
@@ -26,9 +26,9 @@ What it needs
|
||||
and no administrator password are needed for day-to-day use.
|
||||
|
||||
Start, stop and status
|
||||
Opening Luminary starts the local server and opens the editor. Opening it
|
||||
Opening Luminary starts the local engine and opens the editor. Opening it
|
||||
again reuses the running copy instead of starting a second one.
|
||||
- Stop Luminary.command (next to the app in the disk image) stops the server.
|
||||
- Stop Luminary.command (next to the app in the disk image) stops it.
|
||||
- The same commands are available from a terminal:
|
||||
/Applications/Luminary.app/Contents/Resources/launcher.sh --status
|
||||
/Applications/Luminary.app/Contents/Resources/launcher.sh --stop
|
||||
@@ -46,13 +46,13 @@ Logs
|
||||
~/Library/Application Support/Luminary/data/logs/server.err.log
|
||||
|
||||
Updating
|
||||
Quit the server (Stop Luminary.command), drag the new Luminary.app over the
|
||||
Stop the local engine (Stop Luminary.command), drag the new Luminary.app over the
|
||||
old one, and start it again. The data folder is outside the app and is not
|
||||
touched. The catalog migrates itself on first start.
|
||||
|
||||
Notes
|
||||
- The server listens on 127.0.0.1 only. For proofing galleries that other
|
||||
devices should reach, run the server yourself with HOST=0.0.0.0.
|
||||
- The local engine listens on 127.0.0.1 only. For proofing galleries that
|
||||
other devices should reach, run it yourself with HOST=0.0.0.0.
|
||||
- The app window is Chrome or Edge in app mode, using its own profile in the
|
||||
data folder, so it does not mix with your normal browsing. Set
|
||||
LUMINARY_WINDOW=browser to open a normal tab instead.
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
#!/bin/bash
|
||||
# Stop the Luminary server started by Luminary.app.
|
||||
# Stop the Luminary local engine started by Luminary.app.
|
||||
# Double-clicking a .command file opens Terminal for as long as this runs.
|
||||
set -u
|
||||
|
||||
|
||||
@@ -49,8 +49,10 @@ state_pid() {
|
||||
sed -n 's/.*"pid"[[:space:]]*:[[:space:]]*\([0-9][0-9]*\).*/\1/p' "$STATE" | head -1
|
||||
}
|
||||
|
||||
# --noproxy forces a direct connection: offline, curl would otherwise resolve
|
||||
# the system proxy/PAC first and every health probe would fail.
|
||||
healthy() {
|
||||
curl -fs -m 2 "http://127.0.0.1:$1/api/health" >/dev/null 2>&1
|
||||
curl -fs -m 2 --noproxy '*' "http://127.0.0.1:$1/api/health" >/dev/null 2>&1
|
||||
}
|
||||
|
||||
# Ask node rather than nc: the bundle always has one, and nc's flags differ
|
||||
@@ -75,12 +77,14 @@ open_window() {
|
||||
open -na "Google Chrome" --args \
|
||||
--app="$url" \
|
||||
--user-data-dir="$DATA/window-profile-chrome" \
|
||||
--window-size=1500,950 --no-first-run --no-default-browser-check
|
||||
--window-size=1500,950 --no-first-run --no-default-browser-check \
|
||||
--no-proxy-server
|
||||
elif [ -d "/Applications/Microsoft Edge.app" ] || [ -d "$HOME/Applications/Microsoft Edge.app" ]; then
|
||||
open -na "Microsoft Edge" --args \
|
||||
--app="$url" \
|
||||
--user-data-dir="$DATA/window-profile-edge" \
|
||||
--window-size=1500,950 --no-first-run --no-default-browser-check
|
||||
--window-size=1500,950 --no-first-run --no-default-browser-check \
|
||||
--no-proxy-server
|
||||
else
|
||||
open "$url"
|
||||
fi
|
||||
@@ -162,7 +166,7 @@ start() {
|
||||
if ! kill -0 "$pid" 2>/dev/null; then
|
||||
rm -f "$STATE"
|
||||
tail_logs
|
||||
dialog "Luminary's server stopped while starting. Log: $LOGS/server.err.log"
|
||||
dialog "Luminary's local engine stopped while starting. Log: $LOGS/server.err.log"
|
||||
exit 1
|
||||
fi
|
||||
sleep 0.5
|
||||
@@ -232,7 +236,7 @@ Luminary.app launcher
|
||||
|
||||
No argument starts the app (or reuses a running copy) and opens the window.
|
||||
--browser open a normal browser tab instead of a Chrome/Edge app window
|
||||
--stop stop the server this bundle started
|
||||
--stop stop the local engine this bundle started
|
||||
--status print version, pid, port, health and the data directory
|
||||
--verify check that the bundle is complete
|
||||
|
||||
|
||||
Reference in New Issue
Block a user