mirror of
https://github.com/runkids/skillshare.git
synced 2026-11-19 02:17:09 +00:00
Two issues fixed: 1. Air's full_bin does not run through sh -c, so the previous "cd ... && /workspace/..." in SKILLSHARE_UI_EXEC_PREFIX was silently failing (cd exits 0, binary never runs). Replace with a wrapper script that does cd + exec. 2. Port cleanup relied on fuser which is missing in containers. Add pids_on_port() that reads /proc/net/tcp6 to find socket inodes and maps them back to PIDs. Three-layer cleanup: PID file → pkill pattern → port-level kill. Also improve error messages: show the stuck PIDs and fix command instead of the unhelpful "slow start" message.