Code Monkey home page Code Monkey logo

Comments (6)

alexspeller avatar alexspeller commented on August 10, 2024

This is not enough information to debug it. It definitely works for me. Please give full instructions to reproduce including exact versions of gems and exactly what you are doing (i.e. "deployed" is not nearly enough information - how are you deploying? what commands are you running?)

I won't be able to do anything unless you can show how to reproduce the problem clearly.

from non-stupid-digest-assets.

rubytastic avatar rubytastic commented on August 10, 2024

I deploy like regularly with capistrano.

  • git add / git commit / git push origin master
  • cap deploy && cap deploy:restart

/config/deploy.rb => https://gist.github.com/rubytastic/0eb452d8b644b0c593f1

the /lib/sprockets.rb should monkey patch the sprockets gem but it is not,
im not sure why not, my list of gems is extensive, i cannot push my code to github due to contractual issues.
Not sure this is enough info to fix the problem.

Not sure how to "hook" into this monkey patch to check it is getting executing.
There is no references in the production.log

from non-stupid-digest-assets.

alexspeller avatar alexspeller commented on August 10, 2024

You should try running rake assets:precompile locally. If it works locally it's something to do with your complex deploy code.

Like I said, unless you can give instructions to reproduce this (start with a new rails app), then I won't be able to help you.

from non-stupid-digest-assets.

rubytastic avatar rubytastic commented on August 10, 2024

rake assets:precompile in development mode does not trigger the sprockets.rb monkeypatch.
I look into this later on, don't have time to create a full reproduce now for this.
Thank you for the help so far, I update this post when I found solution and what caused my problem.

from non-stupid-digest-assets.

rubytastic avatar rubytastic commented on August 10, 2024

sprockets (2.10.0)
sprockets-rails (2.0.0)
/Users/jordan/.rvm/gems/ruby-2.1.0-preview1@books/gems/activesupport-4.0.0/lib/active_support/core_ext/module/aliasing.rb:32:in alias_method': undefined methodcompile' for class `Sprockets::Manifest' (NameError)

So looking into, you use different version of sprockets? Im going to monkey patch the method based on original and see if that works, perhaps build sprockets gem version raise into the code as security check

from non-stupid-digest-assets.

rubytastic avatar rubytastic commented on August 10, 2024

Ok fixed it, with this: https://gist.github.com/ryana/6049833
Still not sure why your code fails, could be a local project based issue out of your monkey patch, thanks!

from non-stupid-digest-assets.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.