App Engine灵活 - requirements.txt包括GCP存储库

时间:2017-07-03 11:48:05

标签: python git google-app-engine app-engine-flexible requirements.txt

我正在尝试设置在python 3 App Engine Flexible环境中运行的应用程序。我有一个app.yaml文件:

runtime: python
env: flex
entrypoint: gunicorn -b :$PORT application:app

runtime_config:
  python_version: 3

我有一个requirements.txt列出了我的应用需要的一些软件包:

Flask==0.12
gunicorn==19.7.1
...

我还有一个位于GCP源代码库(git)中的公共函数包。我不想在PyPi上公开主持它。是否可以将其作为要求包括在内?类似的东西:

git+https://source.developers.google.com/p/app/r/common

在我在本地计算机上尝试使用上面的用户名和密码时,即使我有一个帮助器设置:

git config credential.helper gcloud.sh

1 个答案:

答案 0 :(得分:0)

您可以将-i http://yourhost.com --trusted-host yourhost.com标志添加到requirements.txt文件中。