- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
我突然在 dotcloud 上构建 Python/Django 应用程序时遇到了麻烦。看来MySQL-python
需要distribute >= 0.6.28
。我的requirements.txt指定distribute==0.6.36
,但这被忽略。 Dotcloud 似乎正在使用 0.6.10
代替。有没有办法升级正在使用的分发包?
Django==1.5.1
MySQL-python==1.2.4
PIL==1.1.7
Pygments==1.6
South==0.7.6
anyjson==0.3.3
boto==2.8.0
distribute==0.6.36
django-background-task==0.1.6
django-extensions==1.1.1
django-mptt==0.5.5
django-social-auth==0.7.22
django-storages==1.1.8
django-tinymce==1.5.1b4
djangorestframework==2.2.6
docutils==0.10
httplib2==0.8
importlib==1.0.2
oauth2==1.5.211
ordereddict==1.1
python-dateutil==1.5
python-openid==2.2.5
pytz==2013b
selenium==2.32.0
six==1.3.0
wsgiref==0.1.2
16:43:46.608001: [www] I am snapshotsworker_00/ec2-23-22-131-20, and I will be your builder today.
16:44:02.918066: [www] Requirement already satisfied (use --upgrade to upgrade): Django==1.5.1 in /opt/ve/2.6/lib/python2.6/site-packages (from -r requirements.txt (line 1))
16:44:02.918522: [www] Downloading/unpacking MySQL-python==1.2.4 (from -r requirements.txt (line 2))
Downloading MySQL-python-1.2.4.zip (113Kb): 113Kb downloaded13Kb):
16:44:23.028019: [www] Storing download in cache at /home/dotcloud/.pip-cache/http%3A%2F%2Fpypi.python.org%2Fpackages%2Fsource%2FM%2FMySQL-python%2FMySQL-python-1.2.4.zip
16:44:23.028471: [www] Running setup.py egg_info for package MySQL-python
16:44:23.808020: [www] The required version of distribute (>=0.6.28) is not available,
16:44:23.808477: [www] and can't be installed while this script is running. Please
16:44:23.808732: [www] install a more recent version first, using
16:44:23.808985: [www] 'easy_install -U distribute'.
16:44:23.809487: [www] (Currently using distribute 0.6.10 (/opt/ve/2.6/lib/python2.6/site-packages))
16:44:23.828053: [www] Complete output from command python setup.py egg_info:
16:44:23.828490: [www] The required version of distribute (>=0.6.28) is not available,
16:44:23.828999: [www] and can't be installed while this script is running. Please
16:44:23.829503: [www] install a more recent version first, using
16:44:23.830016: [www] 'easy_install -U distribute'.
16:44:23.831304: [www] (Currently using distribute 0.6.10 (/opt/ve/2.6/lib/python2.6/site-packages))
16:44:23.832167: [www] ----------------------------------------
16:44:23.832633: [www] Command python setup.py egg_info failed with error code 2 in /opt/ve/2.6/build/MySQL-python
16:44:23.833106: [www] Storing complete log in /home/dotcloud/.pip/pip.log
16:44:24.598341: [www] -- Build failed: "/home/dotcloud/env/bin/pip install --download-cache=~/.pip-cache -r requirements.txt" failed with return code 1
16:44:24.677501: [www] Build failed for service (www)
最佳答案
我找到了使用 pre-build hook 的解决方法。构建器脚本中给出的 easy_install
建议不起作用,但它确实适用于 pip
。以下是详细信息。
www:
type: python
prebuild: ./prebuild
db:
type: mysql
pip install --upgrade distribute==0.6.36
关于python - 在 dotcloud 上构建 mysql-python 时遇到问题 : needs distribute >= 0. 6.28,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16174994/
根据 dotcloud 上的文档,我执行了“dotcloud alias add ramen.www www.example.com”。然后我得到“请添加以下 dns 记录:www.example.c
是否可以将两个“www”条目放入 dotcloud.yml 文件中?我想要一个 type:node 和一个 type:static,但它们位于 .yml 文件的“www”部分。不确定我是否能做到,但我
dotcloud 域与 https 一起使用,即 https://xxxx-username.dotcloud.com/ 但是我如何将它添加到自定义域中? https://mydomain.com 最
dotcloud 提供了许多有用的信息作为环境变量,但我的 nginx.conf 无法访问环境变量。有什么好的解决方法? 场景如下:我想将某些 URL 从我的 www 静态服务重定向到我的 rest
运行 docker 后如何知道容器的网络接口(interface)? 请求在 docker 中为容器设置防火墙的简单示例。 最佳答案 好的,我在 IRC 上问了这个问题。如果您需要拒绝/允许从所有容器
http://docs.dotcloud.com/guides/daemons/状态: Configuring The Environment You can easily modify the en
我正在尝试在 dotcloud 上设置一个 twistd 守护进程: 我的 supervisord.conf 文件: [program:apnsd] command=/home/dotcloud/en
所以我在 dotcloud 上运行一个 flask python 应用程序,我基本上是在尝试散列密码(使用 hashlib.sha512;盐是 uuid.uuid4().bytes)。 user_di
我在 dotCloud 上有一个 python 应用程序。我使用 dotCloud Push 发布了我的原始代码。之后,我使用 dotcloud run --application myApp www
我尝试在 dotcloud 上安装 Thin,遵循 official document , 但我失败了。 "Thin:up..."出现在 cli 上,但我无法通过打开 webapp 的 url 看到它
如何将目录从主机挂载到 Docker 中的容器? 最佳答案 作为最后一次更新,该功能现已在 Docker 中发布(尽管 API 在@imiric 链接的拉取请求后发生了变化)。 只需使用类似的命令 d
我正在尝试运行 cron 来运行自定义 Django 管理命令。我在 DotCloud 上运行。 当 cron 运行时,出现以下错误: Traceback (most recent call last
我正在使用 Dotcloud 部署我的 Django 应用程序。在本地开发时,我必须在某些依赖项(位于我的 virtualenv 中)的代码中进行更改。 所以我的问题是:在 dotcloud 上部署时
我使用 BLOB db 类型 on play 框架将文件上传到服务器。在 application.conf 文件中我有 attachments.path=home/dotcloud/uploads 但
我找不到让 redis 在 dotcloud 上启动时加载我自己的 dump.rdb 备份文件的方法。我可以在服务器日志中看到 redis 正在加载一个文件,但我不知道它在哪里(我也找不到它) [14
docker run 通常会返回它运行的命令的输出。我需要将一些数据传递给 docker,运行处理数据的命令,然后返回输出。当我使用 -i 选项时,不返回任何输出。考虑这个简单的例子: echo he
我一直在尝试让主管监控我的nodejs 服务器进程,但是我在让supervisord.conf 正常工作时遇到问题。当我部署时,出现以下错误: WARNING: The service crashed
我正在尝试运行一个 nodejs 套接字服务器,该服务器将允许两个运行 Flash 游戏并使用自定义协议(protocol)进行通信的客户端之间进行远程通信。由于 Flash 安全限制,套接字服务器似
我在 dotCloud 上部署 Node.js 服务时看到以下错误: 23:03:59.958870: [www] npm ERR! Error: SSL Error: CERT_UNTRUSTED
我正在尝试在托管服务“dotcloud”上托管一个 nodejs 应用程序。我的 nodejs 使用包“websocket”来处理通信。IE。 npm 安装 websocket 我的应用程序在笔记本电
我是一名优秀的程序员,十分优秀!