add tests for pre/post deploy tasks

This commit is contained in:
Michael Hobbs committed 2017-04-03 12:34:41 -07:00
1 parent a72a82e29b
commit 8950571acb
16 files changed
+111 -1

No files matched your search

+20
View File
@@ -0,0 +1,20 @@
package main
import (
"fmt"
"net/http"
"os"
)
func main() {
http.HandleFunc("/", hello)
fmt.Println("listening...")
err := http.ListenAndServe(":"+os.Getenv("PORT"), nil)
if err != nil {
panic(err)
}
}
func hello(res http.ResponseWriter, req *http.Request) {
fmt.Fprintln(res, "go")
}