1
0
Fork
You've already forked mux
0
a friendly local web server
  • Go 99.6%
  • Procfile 0.4%
2026年03月16日 00:21:00 +01:00
example/_ 2026年03月15日 2026年03月15日 20:39:48 +01:00
.gitignore 2026年03月15日 2026年03月15日 18:40:17 +01:00
go.mod 2026年03月15日 2026年03月15日 18:40:17 +01:00
main.go 2026年03月15日 2026年03月16日 00:21:00 +01:00
README.txt 2026年03月15日 2026年03月16日 00:21:00 +01:00

mux - a friendly local web server
Usage: mux <rootDir> [domain] [port]
Examples:
 mux ~/Web localhost
Now visit in your browser:
 http://blog.localhost - serves files from ~/Web/blog/
 http://app.localhost - runs command from ~/Web/app/Procfile
 http://localhost - serves files from ~/Web/_/
What's a Procfile?
 A file inside a folder with a line like "web: ./server"
 mux will start that command (with $PORT set to proxied port)
 and send all traffic to it.
No configuration needed, just folders and simple addresses.