1
我有一個sinatra服務器,並根據gemfile,有不同組的寶石。具體來說,有一個應用程序組,一個測試組和一個開發組。如何在這三個組之間切換我的應用程序?具體來說,我想在測試模式下運行我的服務器,以便我可以執行TDD。如何在開發和測試之間切換我的sinatra服務器?
這裏是gemfile。
source 'https://rubygems.org'
ruby '2.0.0'
gem 'sinatra'
gem 'sinatra-contrib', require: %w(sinatra/config_file)
gem 'thin'
gem 'slim'
gem 'sinatra-assetpack'
gem 'zurb-foundation'
gem 'compass'
group :application do
# Here should be all the specifics for the application
end
group :test do
gem 'rspec'
gem 'coveralls'
gem 'capybara'
gem 'rubocop'
end
group :development do
gem 'rake'
gem 'guard', '2.2.3'
gem 'guard-rspec'
gem 'guard-rubocop'
gem 'guard-livereload'
gem 'guard-shotgun', git: '[email protected]:rchampourlier/guard-shotgun.git', branch: 'master'
gem 'blam'
end