Skip to content

Commit 4ed4827

Browse files
committed
Merge branch 'backup'
2 parents f28c289 + 7b5ee5c commit 4ed4827

File tree

3 files changed

+16
-0
lines changed

3 files changed

+16
-0
lines changed

Procfile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
web: python hello.py

hello.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
"""Cloud Foundry test"""
2+
from flask import Flask
3+
import os
4+
5+
app = Flask(__name__)
6+
7+
port = int(os.getenv("VCAP_APP_PORT"))
8+
9+
@app.route('/')
10+
def hello_world():
11+
return 'Hello World! I am running on port ' + str(port)
12+
13+
if __name__ == '__main__':
14+
app.run(host='0.0.0.0', port=port)

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Flask

0 commit comments

Comments
 (0)