没有捆绑器安装宝石-Rails 3

时间:2013-06-21 07:18:46

标签: ruby-on-rails ruby-on-rails-3 gem bundler

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

    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

1 个答案:

答案 0 :(得分:1)

简化在终端上写下以下命令

gem install pg -v='0.12.2'
gem install therubyracer
gem install jquery-rails
gem install devise
gem install turn -v=0.8.2