如何在 Rails 项目中导入 ruby [英] How to import ruby on rails project
问题描述
我正在尝试导入一个别人在 1 年前构建的项目,现在我的 Mac 已经安装了以下所有内容,其中包括:
I am trying to import a project that someone else build 1 year ago, now my mac have already installed all below which include:
ruby、rails 和 mysql
回形针
蜻蜓
authlogic
sqlite3-ruby
uuid
rmagick
瘦或杂种
nokogiri
rack-cache
小马
tiny_mce
谁能告诉我如何导入项目,或者网上有什么链接可以帮助我吗?
could any one tell how to import the project, or any link on line can help me?
推荐答案
没有所谓的导入 rails 项目,如果你安装了 ruby,你可以使用 bundler
来管理你的 gems通过 Gemfile
There is no such thing called import a rails project, If you have ruby installed, the you could use bundler
to manage your gems via the Gemfile
如果您的项目是使用 rails >= 3 构建的,那么阅读此内容
if your project is built with rails >= 3 then read this
如果你的项目是用 rails <3 然后阅读本文
if your project is build with rails < 3 then read this
一旦你准备好安装运行
bundle install
这将安装所有必要的 gems,如果你已经有一个 Gemfile
,那么只需运行
which will install all the necessary gems, and if you already have a Gemfile
, then simply run
bundle update
这篇关于如何在 Rails 项目中导入 ruby的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!