-
Notifications
You must be signed in to change notification settings - Fork 31
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
will jammit-s3 help to set the ActionController::Base.asset_host to s3 or cloudfront? #24
Comments
post your assets.yml |
<% use_cloudfront: on s3_upload_files:
javascripts: jq-<%=CURRENT_VERSION%>: campaign-<%=CURRENT_VERSION%>: stylesheets: builder: campaign: builder-<%=CURRENT_VERSION%>: campaign-<%=CURRENT_VERSION%>: <% for ver in asset_version %> |
The option use_cloudfront should be set to either of the two values: invalidate or version. |
i looked inside my ~/.rvm/gems/ruby-1.8.7-p352@rails238/gems/jammit-s3-0.6.0.2/lib/jammit-s3.rb require 'jammit/command_line'
require 'jammit/s3_command_line'
require 'jammit/s3_uploader'
module Jammit
def self.upload_to_s3!(options = {})
S3Uploader.new(options).upload
end
end the code above is not same with github. if defined?(Rails)
module Jammit
class JammitRailtie < Rails::Railtie i try to binding.pry within the ~/.rvm/gems/ruby-1.8.7-p352@rails238/gems/jammit-s3-0.6.0.2/lib/jammit-s3.rb to check whether it will run when rvmsudo bundle exec jammit-s3 , and it runs into pry. So , i think the problem is happening when i bundle install for rails 2.3.8. Do you have any idea what cause this? Thanks for the quick reply kmamykin! |
but somehow when pushed to heroku , it will load the missing code and it prompt this error uninitialized constant Rails::Railtie (NameError)
|
after done some research ... rails 2 dont have Rails::Railtie if defined?(Rails) && Rails.version =~ /^3\./
end around it |
Thank you for digging into this issue. I have only used the gem with Rails 3, dont have rails 2 apps using it. Since you are already in the midst of things, may be you can test out a patch and submit a pull request? Much appreciated. |
sure! On Sat, Sep 3, 2011 at 2:52 AM, kmamykin <
|
any updates in this... |
It seems to be not working in my rails app.
The text was updated successfully, but these errors were encountered: