Menu bar interface for a local Apache
httpd
server.
LocalSwitch is an open source macOS interface for apachectl
written in Swift.
Homebrew Cask (Recommended)
brew cask install dafuqtor/tap/localswitch
This script just downloads LocalSwitch to the
Applications
folder. Additionaly, you lose auto-updates.
curl -sL git.io/localswitchinst | sh
Things shown in menu are obvious, but you need to know some more:
-
RMB click · visit
<username>.local
if the server is off, turns it on
-
Double click · open
~/Sites/
folderdragging a file over the Status Item does the same thing
-
MiddleClick · switch server state
Switch server state using Spotlight Search
or just open LocalSwitch when it's already running
⌘Space · type ls
· hit Enter