Heroku 为什么要安装 rspec?
这就是我在 Gemfile 中的内容:
source 'http://rubygems.org'
gem 'rails', '3.0.5'
gem 'sqlite3'
gem 'hoptoad_notifier', '= 2.4.2'
group :development, :test do
gem 'ruby-debug'
gem "factory_girl_rails"
gem "database_cleaner"
gem "rspec-rails"
gem "cucumber-rails"
gem "capybara"
gem "launchy"
gem "redgreen"
gem "faker"
gem "remarkable_activerecord"
end
当我
git push heroku master
在屏幕上执行此操作时,我看到的是
Installing rspec-core (2.5.1)
Installing rspec-expectations (2.5.0)
Installing rspec-mocks (2.5.0)
Installing rspec (2.5.0)
我认为 Heroku 在生产模式下安装的内容,那么为什么要安装 rspec?
This is what I have in my Gemfile:
source 'http://rubygems.org'
gem 'rails', '3.0.5'
gem 'sqlite3'
gem 'hoptoad_notifier', '= 2.4.2'
group :development, :test do
gem 'ruby-debug'
gem "factory_girl_rails"
gem "database_cleaner"
gem "rspec-rails"
gem "cucumber-rails"
gem "capybara"
gem "launchy"
gem "redgreen"
gem "faker"
gem "remarkable_activerecord"
end
When I do
git push heroku master
on my screen this is what I see
Installing rspec-core (2.5.1)
Installing rspec-expectations (2.5.0)
Installing rspec-mocks (2.5.0)
Installing rspec (2.5.0)
I thought Heroku installs in production mode, then why rspec is being installed?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
这是因为默认情况下所有组都已安装。要告诉 Heroku 忽略某些组,请运行
如果您愿意,您可以阅读有关将 Bundler 与 Heroku 结合使用的更多信息。
That's because by default all groups are installed. To tell Heroku to ignore certain groups, run
You can read more about using Bundler with Heroku if you wish.