slu size尺寸是否正常?

时间:2011-07-26 20:57:30

标签: ruby-on-rails-3 heroku slug

我刚刚开始在Heroku上使用Rails 3,并且惊讶于在Heroku上使用Rails 2.3.5(小于5MB)时,slug大小(28MB)要大得多。这是正常的吗?这是一个只使用reque,aasm和unicorn宝石的简单应用程序。其他一切都是默认的。

source 'http://rubygems.org'
gem 'rails', '3.1.0.rc4'
gem 'pg'
# Asset template engines
gem 'sass-rails', "~> 3.1.0.rc"
gem 'coffee-script'
gem 'uglifier'
gem 'jquery-rails'

gem 'aasm'
gem 'resque'

# Use unicorn as the web server
gem 'unicorn'

group :production do
  gem 'therubyracer-heroku', '0.8.1.pre3'
end

-----> Heroku receiving push
-----> Ruby/Rails app detected
-----> Installing dependencies using Bundler version 1.1.pre.5
       Running: bundle install --without development:test --path vendor/bundle --deployment
       Using rake (0.9.2)
       Using aasm (2.2.0)
       Using multi_json (1.0.3)
       Using activesupport (3.1.0.rc4)
       Using bcrypt-ruby (2.1.4)
       Using builder (3.0.0)
       Using i18n (0.6.0)
       Using activemodel (3.1.0.rc4)
       Using erubis (2.7.0)
       Using rack (1.3.0)
       Using rack-cache (1.0.2)
       Using rack-mount (0.8.1)
       Using rack-test (0.6.0)
       Using hike (1.1.0)
       Using tilt (1.3.2)
       Using sprockets (2.0.0.beta.10)
       Using tzinfo (0.3.29)
       Using actionpack (3.1.0.rc4)
       Using mime-types (1.16)
       Using polyglot (0.3.1)
       Using treetop (1.4.9)
       Using mail (2.3.0)
       Using actionmailer (3.1.0.rc4)
       Using arel (2.1.3)
       Using activerecord (3.1.0.rc4)
       Using activeresource (3.1.0.rc4)
       Using coffee-script-source (1.1.1)
       Using execjs (1.2.0)
       Using coffee-script (2.2.0)
       Using rack-ssl (1.3.2)
       Using rdoc (3.8)
       Using thor (0.14.6)
       Using railties (3.1.0.rc4)
       Using jquery-rails (1.0.12)
       Using json (1.5.3)
       Using kgio (2.5.0)
       Using pg (0.11.0)
       Using bundler (1.1.pre.5)
       Using rails (3.1.0.rc4)
       Using raindrops (0.7.0)
       Using redis (2.2.1)
       Using redis-namespace (1.0.3)
       Using sinatra (1.2.6)
       Using vegas (0.1.8)
       Using resque (1.17.1)
       Using sass (3.1.4)
       Using sass-rails (3.1.0.rc.4)
       Using therubyracer-heroku (0.8.1.pre3)
       Using uglifier (1.0.0)
       Using unicorn (4.0.1)
       Your bundle is complete! It was installed into ./vendor/bundle
       Cleaning up the bundler cache.
-----> Creating ERB based database.yml
-----> Rails plugin injection
       Injecting rails_log_stdout
       Injecting rails3_serve_static_assets
-----> Preparing app for Rails asset pipeline
-----> Discovering process types
       Procfile declares types      -> web, worker
       Default types for Ruby/Rails -> console, rake
-----> Compiled slug size is 28.3MB
-----> Launching... done, v59

1 个答案:

答案 0 :(得分:2)

是的,这很好。特别是因为它是Rails 3.1,因为它依赖于像rubyracer等一些大的宝石。