fix(metablogizer): Use mitmproxy hot-reload instead of restart
mitmproxy's haproxy_router.py addon already implements hot-reload: - Checks routes file mtime on every request - Auto-reloads when file changes Removed unnecessary mitmproxy restart after adding routes. Just ensure file permissions are correct (644) for hot-reload to work. This makes publishing faster and avoids service disruption. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
678e5a5921
commit
f25854b08b
@ -482,10 +482,10 @@ except Exception as e:
|
||||
" 2>/dev/null
|
||||
fi
|
||||
|
||||
# Trigger mitmproxy reload to pick up new route
|
||||
# mitmproxy loads routes at startup, so we need to restart it
|
||||
# Run in background to avoid blocking publish
|
||||
( sleep 1 && /etc/init.d/mitmproxy restart ) >/dev/null 2>&1 &
|
||||
# mitmproxy hot-reloads routes automatically on file change (checks every request)
|
||||
# No restart needed - just ensure file permissions are correct
|
||||
chmod 644 "$routes_file" 2>/dev/null
|
||||
chmod 644 "$main_routes" 2>/dev/null
|
||||
}
|
||||
|
||||
cmd_publish() {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user