python - Pipfile 中的 Elastic BeanStalk Django 错误
问题描述
这是我第一次在 AWS Elastic BeanStalk 上进行部署。我已经构建了一个应用程序https://github.com/ChristopherPHolder/dribblz 并决定将其部署在 Elastic BeanStalk 上,因此我尝试按照他们在https://docs.aws.amazon.com/elasticbeanstalk/latest/dg上的教程进行操作/create-deploy-python-django.html
我已经尝试部署它 2 天了,但不知道还能尝试什么。似乎这里有很多与 Elastic BeanStalk 相关的问题,但并非所有人都有答案,而且似乎没有一个问题与我相同。
我收到此错误:
ERROR: ServiceError - Create environment operation is complete, but with errors. For more information, see troubleshooting documentation.
如果我检查日志,我可以将错误缩小到 pipfile 中 pipenv 的问题。
[ERROR] An error occurred during execution of command [app-deploy] - [InstallDependency]. Stop running the command. Error: fail to install dependencies with Pipfile file with error Command /bin/sh -c /usr/bin/python3.8 -m pipenv install --skip-lock failed with error exit status 1. Stderr:Traceback (most recent call last):
...
...
json.decoder.JSONDecodeError: Expecting property name enclosed in double quotes: line 4 column 1 (char 35)
造成麻烦的线路似乎是
verify_ssl = true
但是,我尝试删除pipfile
andpipfile.lock
以及删除导致 pipfile 中错误的行。
我正在尝试使用 python3.8 创建虚拟环境并在本地运行 python3.8.11,我知道他们使用 python3.8.5 但这应该是我认为的问题。
我看过
部署错误 - django 到弹性 beantalk 但这是一个特定于依赖项的问题,它没有答案。
将 Django 应用程序部署到 AWS ElasticBeanstalk 但同样的问题。
如何解决更新环境操作已完成,但出现错误。有关 AWS Elasticbeanstalk 中的更多信息错误 根本不清楚
Python/Json:期望用双引号括起来的属性名称 但是,仍然没有回答我的问题,也没有给我任何关于错误性质的提示。
我已经阅读了更多内容并浏览了他们的文档,但我似乎找不到与此问题相关的任何内容。
我还能查看什么?有没有人遇到过这样的问题?
解决方案
推荐阅读
- node.js - MongoDB:在聚合查询内的日期范围内查找_id
- javascript - Jasmine(AngularJS)中方法内部的模拟常量
- php - 在 mPDF 中调整 css 大小
- java - 如何将对象作为参数传递给函数,然后让函数将子类型的新对象分配给它的参数?
- forms - Microsoft Forms 中预填充的员工评估
- java - 无法消费消息Kafka Spring Boot Docker Compose
- loops - Binance api“行包含空字节”实时数据错误
- python-3.x - 为什么 Python3 比 Python 慢?
- flutter - 在 Flutter web 中处理溢出
- c# - WPF 表单崩溃