- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我想使用 Vagrant 在尽可能接近 Heroku 的 Cedar 堆栈的环境中开发我的 Django Heroku 应用程序。
到目前为止,我找到的用于构建模拟环境的最佳解决方案是 Eric Holmes 的出色 https://github.com/ejholmes/vagrant-heroku .但是,这个 vagrant box 目前使用 python 2.6.x 而不是我的应用程序使用的 Python 2.7.4,Heroku 默认使用。
我找到的另一个资源是 Heroku 的 https://github.com/heroku/stack-images .我还没有尝试过,但它似乎提供了一种在本地创建雪松堆栈的方法。它以 Python 2.7.2 结束。
哪一个(或其他什么)是最好的方法?我现在有一个可以工作的开发环境——它使用的所有软件都与Heroku 使用(PostgreSQL、Python 2.7.4 等)——但我想模拟 Heroku 环境的其他一些方面(可用内存、磁盘空间、多机架构等)。
我倾向于使用 Eric Holmes 的盒子并根据 https://askubuntu.com/questions/101591/how-do-i-install-python-2-7-2-on-ubuntu 添加 Python 2.7.4| .我会为 Eric 的工作提供补丁,但我不是 Rubyist/veewee...
更新 1: 另一个可能的资源:https://github.com/torchbox/vagrant-django-base .
更新 2: 我决定通过改编上述来源和其他来源来推出自己的更新。这些是我目前正在使用并取得一些成功的文件(Vagrantfile 和 vagrant_data/install.sh):https://gist.github.com/ErikEvenson/5801503 .这让我在 Ubuntu 12.04 512MB 机器上使用 Python 2.7.3 和 PostgresSQL 9.2.4。
我想用第二个盒子分离数据库服务器,并在 Ubuntu 10.04 上使用 Python 2.7.4 获取应用程序服务器。
更新 3: 我的设置有所改进。这是我当前的 vagrant 配置:https://gist.github.com/ErikEvenson/9763878 .
更新 4: 这周我对我的设置进行了多项更新。最新的是https://gist.github.com/ErikEvenson/9763878 .注意事项:
更新 5: 这里有几个更新 -- 主要是软件版本。最新的是https://gist.github.com/ErikEvenson/9763878 .注意事项:
要使用的文件结构是这样的:
- Project directory
-- vagrant_data
--- db
---- install.sh
---- memcached.conf
---- pg_hba.conf
---- postgresql.conf
---- redis.conf
--- web
---- install.sh
-- Vagrantfile
更新 6:自 VirtualBox 4.3.14 修复了一些错误后,开启了 vagrant-vbguest。
最佳答案
你可以试试 Dokku支持 Heroku buildpacks
关于python - 使用 Vagrant 在本地运行 Heroku Cedar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17128517/
在我按照步骤将我的 heroku 实例从 cedar-10 升级到 cedar-14 后,我在推送更改时遇到了问题。虽然如果我创建新应用程序并应用现有代码它可以工作,但它不适用于生产应用程序。 Err
我尝试按照说明操作 here为了在 Heroku 的 Cedar 堆栈上创建一个静态网站。 我已经把网站建好了 here . 当我尝试推送应用程序(使用“git push heroku master”
我虽然 cedar 在 Ubuntu 10.04 上运行,但在检查时似乎并非如此: heroku run python from platform import platform platform()
所以,我在使用 heroku 和这个 rails 教程时遇到了更多问题。我正在制作的 rails 教程让我开发了一个 super 基本的应用程序。然后他们让我创建一个比特桶帐户。在此之后,他们让我创建
我正在使用 cedar 测试框架并尝试从命令行运行测试。构建因以下错误而崩溃: Unresolved error Error Domain=NSCocoaErrorDomain Code=512 "T
Heroku 最近宣布,在今年 11 月之后将不再支持 cedar-10。切换到 cedar-14 导致内存消耗增加,直到我遇到 R14“超出内存配额”错误并且不得不重新启动 heroku。在我开始使
我知道允许的最大 slug 大小是 200 MB。但是每个实例可以使用的最大磁盘空间是多少?假设我在节点进程运行时下载了几个文件。 最佳答案 heroku run bash ~ $ df -h /tm
我是RoR新手,所以有很多概念我还不太理解。 作为我在 Rails 上的第一个项目,我根据 Michael Hartl 的教程编写了一个站点。我的网站是在 Rails 3.1.0 中完成的,并且在我的
我有这个常见的 heroku 错误 ! Heroku 推送被拒绝,未检测到 Cedar 支持的应用程序 尝试在以下执行后推送: git init git add . git commit -a -m
是否可以将应用程序从 Cedar 堆栈降级到 Bamboo? Hirefire 在 Cedar 中不起作用。 最佳答案 无法从 Bamboo 迁移到 Cedar,因此可以安全地假设没有降级路径。 但是
我知道这个问题已经被问过好几次了。但我无法阻止自己在这里发布这个。我是笨蛋。我正在尝试使用以下命令将应用程序从 git 推送到 heroku ubuntu@ip-1x2-xx-xx-xxx:~/vex
任何人都可以深入了解基于 Cedar 的 Heroku 应用程序可以支持的文件数量和 dyno 创建的文件的最大大小(单个和全部)的实际限制。 最佳答案 联系了 Heroku 支持。 他们声称在临时文
我这辈子都想不通。尝试使用 Rack::Cache 来缓存我在 Heroku 上的一些静态公共(public)页面,除了做 Action 缓存以防它通过反向代理。 例如,这是我的“home”操作中的代
我注意到当你部署到 heroku 时,heroku 有一个构建版本号,即 v251。有什么方法可以从我的应用程序中读取它,也许是环境变量?我在他们的雪松堆栈上有一个 node.js 应用程序。 最佳答
尝试调试新的 Heroku 部署 - 似乎缺少数据库表。为此,我正在运行 heroku run console 但我返回了:- Running console attached to term
我无法让Tyre在Heroku Cedar堆栈上的Bonsai插件上使用ElasticSearch进行工作。它不断崩溃我的应用程序,当我检查Heroku日志(即在Terminal中运行heroku l
我正在尝试使用 Cedar 测试 Controller ,但无法真正理解为什么它不起作用。永远不会显示 Controller ,永远不会调用 viewDidLoad 或 viewDidAppear。这
我已经“谷歌搜索”并在这里找到了许多类似的答案。这正是我的错误。 $ git push heroku master Counting objects: 43, done. Delta compress
我想使用 Vagrant 在尽可能接近 Heroku 的 Cedar 堆栈的环境中开发我的 Django Heroku 应用程序。 到目前为止,我找到的用于构建模拟环境的最佳解决方案是 Eric Ho
我想在 heroku cedar 上使用带有 rails 3.2.1 的 CSV 模块,但是 require 'CSV' 没用 这是使用控制台测试时的错误: Loading production en
我是一名优秀的程序员,十分优秀!