Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #helloworld.py
- from flask import Flask
- app = Flask(__name__) #cuidado! Afeta app.yaml
- @app.route('/')
- def hello():
- return 'Hello World!'
- if __name__ == '__main__':
- # This is used when running locally only. When deploying to Google App
- # Engine, a webserver process such as Gunicorn will serve the app.
- app.run(
- host='127.0.0.1',
- port=8080,
- debug=True
- )
- *****************
- requirements.txt
- Flask
- gunicorn
- ************
- runtime: python38
- entrypoint: gunicorn -w 2 helloworld:app
Add Comment
Please, Sign In to add comment