Ruby on Rails 和 MAMP Pro

发布于 2024-09-28 00:36:51 字数 311 浏览 1 评论 0原文

ruby 和 Rails 新手...但对放大器堆栈不熟悉。

我首选的本地开发方法一直是使用 MAMP Pro,因为它易于使用且速度快。但是,如果我希望它与 ROR 一起工作,我似乎还需要进行一些配置。

我的服务器名称设置 (rails.dev) 使用端口 3000,磁盘位置设置为 Rails 安装的公共文件夹。

http://rails.dev/ 会显示“建立数据库连接时出错”的页面。

下一步是什么?

任何帮助将不胜感激,谢谢!

new to ruby, and rails... but not to the amp stack.

my preferred method for local development has always been to use MAMP Pro for it's ease of use and speed. but, i seem to have some more configuration to do if i want it to work with ROR.

i've got my server name setup (rails.dev) to use port 3000 and the disk location is set to the public folder of the rails installation.

http://rails.dev/ leads to a page that says 'Error establishing a database connection.'

what are the next steps?

any help would be appreciated, thanks!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

趁微风不噪 2024-10-05 00:36:51

我相信你很久以前就已经明白了这一点。但为了任何刚刚开始的人,我会提供一个答案。

Rails 使用 WEBrick 服务器进行本地开发。

在 Rails 3

rails server

http://guides.rubyonrails.org/command_line.html

我相信你可以让 Rails 与 MAMP 一起工作,但这不是惯用的,也不值得权衡。

I am sure you figured this out a long time ago. But for the sake of anyone just starting off I will provide an answer.

Rails uses WEBrick Servers for local development.

In Rails 3

rails server

http://guides.rubyonrails.org/command_line.html

I am sure you can get rails to work with MAMP, but it is not idiomatic and is not going to be worth the trade-off.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文