Skip to content

Commit 5d2d857

Browse files
author
Tobias Fuhrimann
committed
add comments in file
1 parent bbb48b8 commit 5d2d857

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

push-changes.html.md.erb

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,17 +10,22 @@ In this step you’ll learn how to propagate a local change to the application t
1010
Change the `return` property in the `app.py` file to 'I am awesome!'. Your final result should look something like this:
1111

1212
```python
13-
from flask import Flask
13+
# import dependencies
1414
import os
15+
from flask import Flask
1516

17+
# bootstrap the app
1618
app = Flask(__name__)
1719

20+
# set the port dynamically with a default of 3000 for local development
1821
port = int(os.getenv('PORT', '3000'))
1922

23+
# our base route which just returns a string
2024
@app.route('/')
2125
def hello_world():
22-
return 'I am awesome!.'
26+
return 'I am awesome!'
2327

28+
# start the app
2429
if __name__ == '__main__':
2530
app.run(host='0.0.0.0', port=port)
2631
```

0 commit comments

Comments
 (0)