Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/python/279.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/4/jquery-ui/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Python 使用Wagrant在本地运行Heroku Cedar_Python_Ruby_Heroku_Vagrant_Veewee - Fatal编程技术网

Python 使用Wagrant在本地运行Heroku Cedar

Python 使用Wagrant在本地运行Heroku Cedar,python,ruby,heroku,vagrant,veewee,Python,Ruby,Heroku,Vagrant,Veewee,我想使用Vagrant在尽可能接近Heroku的Cedar stack的环境中开发我的Django Heroku应用程序 到目前为止,我找到的构建模拟环境的最佳解决方案是Eric Holmes的优秀解决方案。然而,这个流浪者框目前使用的是python 2.6.x,而不是我的应用程序使用的python 2.7.4,Heroku默认为 我找到的另一个资源是Heroku的。我还没有尝试过,但它似乎提供了一种在本地创建雪松堆栈的方法。它以Python 2.7.2结束 其中哪一种(或其他)是最好的方法?我

我想使用Vagrant在尽可能接近Heroku的Cedar stack的环境中开发我的Django Heroku应用程序

到目前为止,我找到的构建模拟环境的最佳解决方案是Eric Holmes的优秀解决方案。然而,这个流浪者框目前使用的是python 2.6.x,而不是我的应用程序使用的python 2.7.4,Heroku默认为

我找到的另一个资源是Heroku的。我还没有尝试过,但它似乎提供了一种在本地创建雪松堆栈的方法。它以Python 2.7.2结束

其中哪一种(或其他)是最好的方法?我现在有一个可以工作的开发环境——它使用与Heroku相同的软件(PostgreSQL、Python 2.7.4等)——但我想模拟Heroku环境的一些其他方面(可用内存、磁盘空间、多机体系结构等)

我倾向于使用Eric Holmes'box,并在其基础上添加Python 2.7.4。我会为Eric的工作提供补丁,但我不是Rubyist/veewee

更新1:另一个可能的资源:

更新2:我决定通过从上述来源和其他来源进行改编来推出自己的版本。这些是我目前使用的文件(Vagrantfile和vagrant_data/install.sh),并取得了一些成功:。这让我在Ubuntu 12.04 512MB的机器上看到了Python 2.7.3和PostgresSQL 9.2.4

我想用第二个盒子分离数据库服务器,并在Ubuntu 10.04上用Python 2.7.4获得应用服务器

更新3:我的设置已经改进。这是我当前的流浪配置:

更新4:本周我对我的设置进行了几次更新。最新更新位于。注意:

  • 使用NFS而不是virtualbox文件夹同步—极大地提高了性能
  • 避免当前virtualbox版本中的来宾添加错误
  • 对版本化的基本框使用新可用的Vagrant Cloud
更新5:这里有几个更新,大部分是软件版本。最新更新位于。注意:

  • 使用流浪汉1.6.3
  • 使用PostgreSQL 9.3.3
  • 使用python 2.7.7并从源代码处安装。python 2.7.3保留为系统python
  • 锁定所有依赖版本——特别是通过apt get和npm安装的版本
  • 使用hashicorp/precise64作为基本框
要使用的文件结构如下所示:

- 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。

您可以尝试支持Heroku buildpacks的版本。

您可以在上看到我的解决方案。

谢谢,我也一直在寻找解决方案……现在就试用您的!