diff --git a/tests/go/.godir b/tests/go/.godir new file mode 100644 index 000000000..4023f2095 --- /dev/null +++ b/tests/go/.godir @@ -0,0 +1 @@ +go diff --git a/tests/go/Procfile b/tests/go/Procfile new file mode 100644 index 000000000..4890262c0 --- /dev/null +++ b/tests/go/Procfile @@ -0,0 +1 @@ +web: go diff --git a/tests/go/web.go b/tests/go/web.go new file mode 100644 index 000000000..a51f5db43 --- /dev/null +++ b/tests/go/web.go @@ -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, "hello, world") +} diff --git a/tests/php/index.php b/tests/php/index.php new file mode 100644 index 000000000..5ad4f9f05 --- /dev/null +++ b/tests/php/index.php @@ -0,0 +1,8 @@ + + + PHP Test + + + Hello World'; ?> + + diff --git a/tests/python/Procfile b/tests/python/Procfile new file mode 100644 index 000000000..4ea72e373 --- /dev/null +++ b/tests/python/Procfile @@ -0,0 +1 @@ +web: gunicorn hello:app diff --git a/tests/python/hello.py b/tests/python/hello.py new file mode 100644 index 000000000..90b188892 --- /dev/null +++ b/tests/python/hello.py @@ -0,0 +1,8 @@ +import os +from flask import Flask + +app = Flask(__name__) + +@app.route('/') +def hello(): + return 'Hello World!' diff --git a/tests/python/requirements.txt b/tests/python/requirements.txt new file mode 100644 index 000000000..7299a1046 --- /dev/null +++ b/tests/python/requirements.txt @@ -0,0 +1,5 @@ +Flask==0.9 +Jinja2==2.6 +Werkzeug==0.8.3 +gunicorn==0.17.2 +