Closed rompic closed 4 years ago
I assume we should get rid of the sass gem altogether and use sassc instead: https://sass-lang.com/blog/ruby-sass-is-unsupported
I think we can just use sassc as a drop in replacement and require it here instead of sass https://github.com/Smashing/smashing/blob/master/lib/dashing/app.rb#L6
and remove sass from the smashing.gemspec.
tests on my site look ok
I assume we should get rid of the sass gem altogether and use sassc instead: https://sass-lang.com/blog/ruby-sass-is-unsupported
+1
https://github.com/rails/sprockets/issues/588#issuecomment-438019730
sprockets 3 doesn't support sassc, so if you want to use sassc-rails you still need sass.
sprockets 4.0 requires ruby 2.5.0 or higher.
so i have required sass / sassc based on the ruby version.
note that sprockets seems to have a problem on some ruby versions: https://github.com/sass/sassc-ruby/issues/133
Two days ago sassc 2.3.0 has been released. looks ok as well.
... to 4.0 for ruby >=2.5.0
sprockets 4.0 requires ruby 2.5.0 and tries to autoload sassc.
first of all I'm not a ruby dev, so this might not be the perfect solution and I'm looking forward to your feedback.
I'm running smashing on a Raspberry Pi 3 Model B Plus Rev 1.3 and run out of memory over time. I found some issues in my jobs, but I also want to ask if someone can help with this.
I used the approach described in https://samsaffron.com/archive/2015/03/31/debugging-memory-leaks-in-ruby
therefore I added rbtrace to my Gemfile and added the following to my config.ru file:
after that I'm able to create a heap dump with:
bundle exec rbtrace -p <process-id> -e 'Thread.new{GC.start;require "objspace";io=File.open("/tmp/ruby-heap.dump", "w"); ObjectSpace.dump_all(output: io); io.close}'
with the help of the heapy gem I ran some analysis:
heapy read /tmp/ruby-heap.dump
heapy read /tmp/ruby-heap.dump all
and found that sprockets/mime.rb is on the top of all the outputs. Something similar is discussed here: https://github.com/rails/sprockets/issues/432
before the change:
After the change: