I am trying to run a flask application using local dev server of appengine. My yaml file is:
runtime: python37
entrypoint: uwsgi --wsgi-file src/main.py --callable app --master --processes 1 --threads 2
and my main.py is:
from flask import Flask
app = Flask(__name__)
@app.route('/')
def main():
return 'Hello'
if __name__ == '__main__':
app.run(debug=True)
I am trying to run the dev server using python2:
dev_appserver.py /path_to/app.yaml --admin_port=9030 --port=9530
I guess it runs fine and I get these logs in the terminal:
INFO 2020-02-09 14:14:27,298 dispatcher.py:256] Starting module "default" running at: http://localhost:9530
INFO 2020-02-09 14:14:27,306 admin_server.py:150] Starting admin server at: http://localhost:9030
INFO 2020-02-09 14:14:28,301 instance.py:561] Cannot decide GOOGLE_CLOUD_PROJECT, using "test" as a fake value
/bin/sh: line 0: exec: uwsgi: not found
ERROR 2020-02-09 14:14:29,318 instance.py:284] Cannot connect to the instance on localhost:18241
I can access the admin server but when I call my hello world url it does not show and it keeps repeating the msg: Cannot decide GOOGLE_CLOUD_PROJECT...