Gemfile分平臺加載gem

Gemfile分平臺加載gem

區分平臺以便加載不一樣的web server,象tzinfo-data只適用於windows
   
   
   
   
# Windows does not include zoneinfo files, so bundle the tzinfo-data gemif RUBY_PLATFORM=~ /win32|mingw/   gem 'tzinfo-data'  gem 'thin'else  gem 'puma'end
相關文章
相關標籤/搜索