0

Google documentation says:

... if you have an existing web application running in the standard environment and you want to add a new feature to convert files to PDFs, you can write a separate microservice that runs in the flexible environment that just handles the conversion to PDF.

How would one structure such a project, to be able to deploy these services and also to be able to run them locally?

I was thinking like this:

- project/
  - appengine_config.py
  - lib/
  - services/
    - std_service_1/
      - std_service_1.yaml
      - src/
    - std_service_2/
      - std_service_2.yaml
      - src/
    - flex_service/
      - flex_service.yaml
      - src/

Then to run locally:

  • dev_appserver.py services/std_service_1/std_service_1.yaml services/std_service_2/std_service_2.yaml
  • python services/flex_service/src/main.py

But lib/ directory cannot be found by dev_appserver.py and dependencies fail. I have vendor.add('lib') in appengine_config.py.

Any ideas?

zoran119
  • 10,657
  • 12
  • 46
  • 88
  • You could always symlink `lib` into the service directories. – Amber Feb 24 '17 at 05:06
  • @Amber I copied the whole `lib` directory to service directories and the problem was still there. – zoran119 Feb 24 '17 at 05:18
  • related, with examples: http://stackoverflow.com/questions/34110178/can-a-default-module-in-a-google-app-engine-app-be-a-sibling-of-a-non-default-mo/34111170#34111170 – Dan Cornilescu Feb 24 '17 at 13:58

0 Answers0