如何使用VM创建Rails暂存环境
我的应用程序正在开发中,我使用 WEBrick 进行所有测试(我喜欢终端输出)。
在生产服务器上,它将在 Phusion Passenger 上运行。
我正在运行 Snow Leopard,并希望在类似于生产环境的环境中测试该应用程序。
我可以使用 Parallels 运行带有 Apache 和 Passenger 的 Debian 安装并配置 Capistrano 进行部署吗?
谢谢!
My app is in development and I do all my testing using WEBrick (I like the terminal output).
On the production server it will run on Phusion Passenger.
I'm running Snow Leopard and wish to test the app in an environment similar to the production environment.
Can I use Parallels to run a Debian install with Apache and Passenger and configure Capistrano to deploy to that?
Thanks!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我一直在使用 VMware 来做这类事情。处理网络方面的问题确实很容易。我最近切换到 Virtualbox ,它实际工作起来要好得多(至少对我来说),是吗?一样的东西,而且是免费的。下载 Debian iso 并创建一个使用它作为 CDrom 的新 VM。这就是您需要做的全部事情。祝你好运。
I have been using VMware for that sort of thing. Its really easy to deal with network wise. I have recently switched to Virtualbox which is much nicer to actually work in (at least for me), does the same things, and is free. Download the Debian iso and create a new VM that uses it as its CDrom. Thats about all you need to do. Good luck.
这可能不是您正在寻找的答案,但我发现在本地运行乘客进行开发非常简单。您始终可以跟踪development.log,这实际上就像观看 webrick 的终端输出一样简单。
通过 phusion 乘客偏好窗格的拖放操作,开发设置变得更加容易。
http://www.fngtps.com/passenger-preference-pane
好像是这样比设置虚拟机等更容易。虽然是的,但我想如果您不在 OS X 服务器上托管,仍然可能存在差异。
This may not be the answer you're looking for but I've found it very straightforward to just run passenger locally for development. You can always tail the development.log, it's really just as easy as watching the terminal output from webrick.
Dev setup is made all the easier with the drag and drop ease of the phusion passenger pref pane.
http://www.fngtps.com/passenger-preference-pane
Seems like it would be easier than setting up the VM and all. Though yes, there could still be differences if your not hosting on OS X server I suppose.