0

我的个人笔记本电脑上有一个使用 Rails 3 的工作项目。我在工作笔记本电脑上检查了该项目。当我在办公室时,由于公司政策,我无法使用捆绑安装。因此,不幸的是我必须手动安装所有的 gem。我怎样才能让我的应用程序运行而不浪费我的时间来解决捆绑程序可以轻松完成的 gems 依赖项。宝石文件:

    source 'http://rubygems.org'

gem 'rails', '3.1.10'

# Bundle edge Rails instead:
# gem 'rails',     :git => 'git://github.com/rails/rails.git'

#gem 'sqlite3'
gem 'pg','0.12.2'
gem 'therubyracer'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.1.5'
  gem 'coffee-rails', '~> 3.1.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer'

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'
gem 'devise'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'

group :test do
  # Pretty printed test output
  gem 'turn', '0.8.2', :require => false
end
4

1 回答 1

2

只需在终端上写下以下commands

gem install pg -v='0.12.2'
gem install therubyracer
gem install jquery-rails
gem install devise
gem install turn -v=0.8.2
于 2013-06-21T11:58:08.993 回答