initial commit
This commit is contained in:
5
cmd/cli/main.go
Normal file
5
cmd/cli/main.go
Normal file
@@ -0,0 +1,5 @@
|
||||
package main
|
||||
|
||||
func main() {
|
||||
|
||||
}
|
||||
18
cmd/daemon/main.go
Normal file
18
cmd/daemon/main.go
Normal file
@@ -0,0 +1,18 @@
|
||||
package main
|
||||
|
||||
import (
|
||||
"log"
|
||||
"net/http"
|
||||
|
||||
"github.com/juls0730/fluxd/server"
|
||||
)
|
||||
|
||||
func main() {
|
||||
fluxServer := server.NewServer()
|
||||
|
||||
http.HandleFunc("POST /deploy", fluxServer.DeployHandler)
|
||||
http.HandleFunc("GET /apps", fluxServer.ListAppsHandler)
|
||||
|
||||
log.Printf("Fluxd started on http://127.0.0.1:5647")
|
||||
log.Fatal(http.ListenAndServe(":5647", nil))
|
||||
}
|
||||
Reference in New Issue
Block a user