在OS X上为ruby、rails和git设置开发环境的好方法是什么?

时间:2021-05-13 23:31:35

I'm going to start development on a web app using ruby, rails, probably either postgres or mysql, and most likely apache. I'll be using a git repository with the master repo on another server.

我将在一个使用ruby, rails,可能是postgres或mysql,最有可能是apache的web应用程序上开始开发。我将在另一台服务器上使用与主repo的git存储库。

I've searched through * and done some Googling... so here's what I have so far...

我搜索了*,搜索了一下……这就是我目前所拥有的…

What are your opinions on what's described on this page?: http://robots.thoughtbot.com/post/159805668/2009-rubyists-guide-to-a-mac-os-x-development

你对本页描述的内容有什么看法?:http://robots.thoughtbot.com/post/159805668/2009-rubyists-guide-to-a-mac-os-x-development

What about this one?: http://www.buildingwebapps.com/articles/79197-setting-up-rails-on-leopard-mac

这一个怎么样?:http://www.buildingwebapps.com/articles/79197-setting-up-rails-on-leopard-mac

I don't need helping finding an editor, there's plenty out there (TextMate, TextWrangler, MacVim), but I do need help to make sure I'm setting things up correctly to code, build, and run the web app from my mac.

我不需要帮助找到一个编辑器,那里有很多(TextMate, TextWrangler, MacVim),但是我需要帮助来确保我在mac上正确地设置代码、构建和运行web应用程序。

Here's a specific set of scenarios I could use some help on:

这里有一组特定的场景,我可以使用一些帮助:

  • Testing various versions of rails and/or ruby.
  • 测试不同版本的rails和/或ruby。
  • Testing performance, vulnerabilities, monitoring queries, etc.
  • 测试性能、漏洞、监视查询等。
  • Testing different versions of gems.
  • 测试不同版本的gem。
  • Working on other projects on this same machine.
  • 在同一台机器上处理其他项目。

2 个解决方案

#1


4  

Neither of these articles mention rvm which is probably a "must have" for testing multiple versions of rails/ruby

这两篇文章都没有提到rvm,它可能是测试多个rails/ruby版本的“必须”

#2


1  

These aren't really the things you should be worrying about at this point. Rails promotes rapid development. Until you actually launch the site SQLite/webrick will more than adequate for building the application.

这并不是你现在应该担心的事情。Rails促进快速发展。直到您真正启动了SQLite/webrick站点,才足以构建应用程序。

I understand the desire to set things up perfectly before you start development, but I'd encourage you to just dive in and worry about those things later.

我理解您在开始开发之前希望将事情设置得完美无缺的愿望,但是我鼓励您在以后深入研究这些问题并对此进行担忧。

That being said, I would set up git. Not enough can be said on the value of using version control.

也就是说,我要建立git。使用版本控制的价值是不够的。

#1


4  

Neither of these articles mention rvm which is probably a "must have" for testing multiple versions of rails/ruby

这两篇文章都没有提到rvm,它可能是测试多个rails/ruby版本的“必须”

#2


1  

These aren't really the things you should be worrying about at this point. Rails promotes rapid development. Until you actually launch the site SQLite/webrick will more than adequate for building the application.

这并不是你现在应该担心的事情。Rails促进快速发展。直到您真正启动了SQLite/webrick站点,才足以构建应用程序。

I understand the desire to set things up perfectly before you start development, but I'd encourage you to just dive in and worry about those things later.

我理解您在开始开发之前希望将事情设置得完美无缺的愿望,但是我鼓励您在以后深入研究这些问题并对此进行担忧。

That being said, I would set up git. Not enough can be said on the value of using version control.

也就是说,我要建立git。使用版本控制的价值是不够的。