mirror of
https://github.com/dokku/dokku.git
synced 2025-12-29 00:25:08 +01:00
moving test apps into place with proper check_deploy scripts
This commit is contained in:
2
tests/apps/go/check_deploy
Executable file
2
tests/apps/go/check_deploy
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
set -e; test "$(curl -s $1)" == "go"
|
||||
@@ -16,5 +16,5 @@ func main() {
|
||||
}
|
||||
|
||||
func hello(res http.ResponseWriter, req *http.Request) {
|
||||
fmt.Fprintln(res, "hello, world")
|
||||
fmt.Fprintln(res, "go")
|
||||
}
|
||||
@@ -1,3 +1,2 @@
|
||||
#!/bin/bash
|
||||
set -e
|
||||
test "$(curl $1)" == "nodejs/express2"
|
||||
set -e; test "$(curl -s $1)" == "nodejs/express"
|
||||
2
tests/apps/php/check_deploy
Executable file
2
tests/apps/php/check_deploy
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
set -e; test "$(curl -s $1)" == "<html><h3>php</h3></html>"
|
||||
1
tests/apps/php/index.php
Normal file
1
tests/apps/php/index.php
Normal file
@@ -0,0 +1 @@
|
||||
<html><?php echo '<h3>php</h3>'; ?></html>
|
||||
2
tests/apps/python-flask/check_deploy
Executable file
2
tests/apps/python-flask/check_deploy
Executable file
@@ -0,0 +1,2 @@
|
||||
#!/bin/bash
|
||||
set -e; test "$(curl -s $1)" == "python/flask"
|
||||
@@ -5,4 +5,4 @@ app = Flask(__name__)
|
||||
|
||||
@app.route('/')
|
||||
def hello():
|
||||
return 'Hello World!'
|
||||
return 'python/flask'
|
||||
@@ -1,8 +0,0 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>PHP Test</title>
|
||||
</head>
|
||||
<body>
|
||||
<?php echo '<h3>Hello World</h3>'; ?>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user