package main
import (
"net/http"
"log"
)
func main() {
// this calls loadConfig in util.go.
// I might put util.go in another package in the near future
LoadConfig()
// this calls service.go's route to handle the routing.
Route()
// Start the server on port 8888
err := http.ListenAndServe(":8888", nil)
if err != nil {
log.Fatal("ListenAndServe: ", err)
}
}
Main
{
"repositories":[
{"name":"testrepo", "path":"/home/j/src/git-sandbox", "scm":"git"}
]
}
config.json
This change has been discarded.
Opening a new review request that points at rb-gateway