We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bbb48b8 commit 5d2d857Copy full SHA for 5d2d857
push-changes.html.md.erb
@@ -10,17 +10,22 @@ In this step you’ll learn how to propagate a local change to the application t
10
Change the `return` property in the `app.py` file to 'I am awesome!'. Your final result should look something like this:
11
12
```python
13
-from flask import Flask
+# import dependencies
14
import os
15
+from flask import Flask
16
17
+# bootstrap the app
18
app = Flask(__name__)
19
20
+# set the port dynamically with a default of 3000 for local development
21
port = int(os.getenv('PORT', '3000'))
22
23
+# our base route which just returns a string
24
@app.route('/')
25
def hello_world():
- return 'I am awesome!.'
26
+ return 'I am awesome!'
27
28
+# start the app
29
if __name__ == '__main__':
30
app.run(host='0.0.0.0', port=port)
31
```
0 commit comments