0

I have a Flask-restful API(micro-service) written in python 2.7 using Google Cloud STANDARD environment, and dev_appserver.py(gcloud sdk) helps to run it locally.

Now, I plan to do three things:

  1. Upgrade the code from Python 2.7 to Python 3.5
  2. Google Cloud STANDARD environment to Google cloud FLEXIBLE environment Question: but standard environment uses AppEngine library and methods, that don't work in flexible environment, so, can Google Cloud Client libraries solve the purpose?
  3. Run locally and test the micro-service Question: Please give suggestions to replace dev_appserver.py
Taku
  • 31,927
  • 11
  • 74
  • 85
  • tangentially related: https://stackoverflow.com/questions/45842772/how-to-tell-if-a-google-app-engine-documentation-page-applies-to-the-standard-or – Dan Cornilescu Aug 29 '17 at 12:36

1 Answers1

1
  1. There are a lot of differences between the environments. A lot of methods and libs from standard won't work in flex.

    See here for more info:

  2. You can't use dev_appserver.py in flex environment. You will need to run Flask the regular way. e.g (locally) FLASK_APP=main.py FLASK_DEBUG=1 python -m flask run --port 8080

Eyal Levin
  • 16,271
  • 6
  • 66
  • 56