@ -1,7 +1,7 @@
#!/usr/bin/env bash
while true; do
find . -type f -not -name modularium \
find . -type f -not -name mir \
| grep -v '.git' \
| entr -c -d -r ./devloop
sleep 0.25
@ -4,4 +4,4 @@ set -e
/home/jordan/code/go/bin/go test
/home/jordan/code/go/bin/go build
./modularium serve
./mir serve
@ -89,7 +89,7 @@ func (h handler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
err := zip.CreateFromDir(w, module.Version{
Path: "orel.li/fart",
Version: "v0.0.3",
}, "/home/jorelli/modularium/modules/orel.li/fart")
}, "/home/jorelli/mir/modules/orel.li/fart")
if err != nil {
log_error.Printf("zip error: %v", err)
}
@ -8,7 +8,7 @@ import (
)
func serve(args []string) {
path := "./modularium.sock"
path := "./mir.sock"
indexPath := pathArg{path: "./modules-index.json"}
serveFlags := flag.NewFlagSet("serve", flag.ExitOnError)
@ -1 +1,8 @@
modularium [listen-address]
mir: a Go modules origin server
Usage:
mir [command]
Commands:
serve: live module server
zip: creates module zip files