Elastic Beanstalk:部署 Django for mac,无法安装 EB
Posted
技术标签:
【中文标题】Elastic Beanstalk:部署 Django for mac,无法安装 EB【英文标题】:Elastic Beanstalk: Deploy Django for mac, CANNOT install EB 【发布时间】:2014-06-09 02:05:55 【问题描述】:我正在尝试根据 Amazon 的教程在 Mac 中为 Django 设置 Elastic Beanstalk: http://docs.aws.amazon.com/elasticbeanstalk/latest/dg/create_deploy_Python_django.html
直到第 3 步:配置 AWS Elastic Beanstalk:
当我进入第三个子步骤“从您创建本地存储库的目录中,键入以下命令。”
eb init
错误是
(djangodev)Lee-Jamess-MacBook-Pro:~ h0925473$ git init
Reinitialized existing Git repository in /Users/h0925473/.git/
(djangodev)Lee-Jamess-MacBook-Pro:~ h0925473$ alias eb="python2.7/Users/h0925473/AWS_EB/eb/macosx/python2.7/eb"
(djangodev)Lee-Jamess-MacBook-Pro:~ h0925473$ eb init
Traceback (most recent call last):
File "/Users/h0925473/AWS_EB/eb/macosx/python2.7/eb", line 17, in <module>
from scli import core
File "/Users/h0925473/AWS_EB/eb/macosx/python2.7/scli/core.py", line 24, in <module>
from scli import command, cli_parse, config_file, prompt
File "/Users/h0925473/AWS_EB/eb/macosx/python2.7/scli/command.py", line 16, in <module>
from lib.utility import misc
File "/Users/h0925473/AWS_EB/eb/macosx/python2.7/lib/utility/misc.py", line 22, in <module>
from scli.constants import OSSpecific, ServiceDefault, TerminalConstant
File "/Users/h0925473/AWS_EB/eb/macosx/python2.7/scli/constants.py", line 374
ParameterName.RdsEngine,
^
SyntaxError: invalid syntax
谁能告诉我我做错了什么?为什么会出现语法错误?
【问题讨论】:
【参考方案1】:原因似乎是我没有正确设置mysql。 请参考另一个question
【讨论】:
以上是关于Elastic Beanstalk:部署 Django for mac,无法安装 EB的主要内容,如果未能解决你的问题,请参考以下文章
Bcrypt Elastic beanstalk nodejs 部署
由于 NPM 警告,AWS Elastic Beanstalk 部署失败
在 AWS Elastic Beanstalk 和 EKS 上部署了一个 laravel 应用程序 相同的数据库 RDS 为啥在 Elastic Beanstalk 中获得快速响应