title: How to get Elastic Beanstalk to server compiled assets?
body: <p>I am trying to get a Rails 3.2.x application to run in production but everytime I visit the deployed application it complains about assets not being compiled:</p>
  
  <pre><code>An ActionView::Template::Error occurred in home#index:
  
  application.css isn't precompiled
  vendor/bundle/gems/actionpack-3.2.11/lib/sprockets/helpers/rails_helper.rb:142:in `digest_for'
  
  
  -------------------------------
  Request:
  -------------------------------
  
  * URL       : http://some-server.elasticbeanstalk.com/
  * Parameters: {"controller"=&gt;"home", "action"=&gt;"index"}
  * Rails root: /var/app/current
  * Timestamp : 2013-01-17 17:22:55 UTC
  </code></pre>
  
  <p>However, when i consult the log files of my EB instance I see this as part of each deploy:</p>
  
  <pre><code>Script succeeded.
  Executing script: /opt/elasticbeanstalk/hooks/appdeploy/pre/11_asset_compilation.sh
  Output from script: /usr/bin/ruby1.9 /usr/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
  </code></pre>
  
  <p>I can run a local instance of Passenger in production mode and the assets are served fine. Does anyone have any insight on what might be going wrong?</p>