Comments (6)
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.
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.
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.
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.
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 method
compile' 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.
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)
- Regular Expression in whitelist? HOT 1
- Pin Rails/Sprockets version? HOT 1
- Compatibility issue with Rails 4.2.0.beta1 HOT 10
- Docs: rake task not quite, more info/links? HOT 1
- Incompatibility with multi-core compilation HOT 3
- Missing non digested assets inside manifest file. HOT 4
- No usage section in readme
- Thank you! HOT 1
- Non manifested assets are never compressed HOT 1
- Doesn't work on Heroku HOT 1
- Inaccurate documentation from #22
- Any plan to support sprockets 3? HOT 1
- Reverting a change is not reflected on non-digest version HOT 1
- Non-digest only mode (move instead of copy) HOT 4
- Alternative: controller proxy
- On subsequent runs the assets are 0 file size HOT 1
- Add info for Rails 5 / Sprockets 3 HOT 5
- Works great, thank you! HOT 1
- Is the repo still maintained? HOT 2
- `CompileWithNonDigest` uses deprecated `File.exists?`, removed in Ruby 3.2 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from non-stupid-digest-assets.