小编amr*_*egm的帖子

Docker 在 AWS Beanstalk 上为 Python 应用程序构建超时

我有一个在 AWS Beanstalk 上运行的 Python2/Django 应用程序。我使用 Dockerfile 进行部署。一切都工作正常,直到我将firebase-admin==3.2.1依赖项添加到我的requirements.txt. 发生的情况是 Docker 映像构建时间比平时更长,并且 Beanstalk 构建过程开始失败。经过更多分析,我注意到子依赖项需要很长时间才能安装grpcio==1.31.0。Firebase lib 使用它与 Google API 进行通信。

我尝试将命令超时设置增加到 20 分钟或更长,但没有任何改变。EB部署过程消耗了整个时间间隔并最终失败。我尝试进入 EC2 实例本身以查找任何可以调整的有用内容,但一无所获。

eb-engine.log我相信这是解释错误部分的示例。

  Stored in directory: /root/.cache/pip/wheels/6f/8e/a7/c5ce8f1742b7d2b9e07cd1064cf201293d157c3c4e1021a74a
  Running setup.py bdist_wheel for psutil: started
  Running setup.py bdist_wheel for psutil: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/39/a0/f5/c4fa280463e29aea07797acb5312358fefb067c1f4f98e11b1
  Running setup.py bdist_wheel for Pyphen: started
  Running setup.py bdist_wheel for Pyphen: finished with status 'done'
  Stored in directory: /root/.cache/pip/wheels/78/e3/76/42853bf2f7573a72fb5fe377a8406c979a5479ad6930506cde
  Running setup.py bdist_wheel for cairocffi: …
Run Code Online (Sandbox Code Playgroud)

python-2.7 docker amazon-elastic-beanstalk dockerfile firebase-admin

9
推荐指数
0
解决办法
1114
查看次数

无法使用django-social-auth使用twitter登录

我正在使用django-social-auth app(https://github.com/omab/django-social-auth)进行社交认证.

我向应用程序提供了consumer_key和consumer_secret.

当我写入登录到Twitter
http://127.0.0.1:8000/accounts/login/twitter的链接时,页面加载,好像有一个请求被发送,持续几秒钟,然后页面停止加载,没有任何重定向或任何其他反应

django-socialauth twitter-oauth

1
推荐指数
1
解决办法
1211
查看次数