add tests for pre/post deploy tasks

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

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")
}