Discourse master branch code & Ubuntu 12.04 Deployment: Assets precompile


(songjiayang) #1

After updating to latest, running rake assets:precompile fails with the following error:

RAILS_ENV=production bundle exec rake assets:precompile
NoMethodError: undefined method `dirname' for "app/assets/stylesheets/desktop.scss":String
....
/var/www/discourse/lib/sass/discourse_sass_compiler.rb:58:in `compile'
/var/www/discourse/lib/sass/discourse_sass_compiler.rb:6:in `compile'
/var/www/discourse/lib/sass/discourse_stylesheets.rb:34:in `compile'
/var/www/discourse/lib/sass/discourse_stylesheets.rb:21:in `block in compile'
/var/www/discourse/lib/sass/discourse_stylesheets.rb:19:in `synchronize'
/var/www/discourse/lib/sass/discourse_stylesheets.rb:19:in `compile'
/var/www/discourse/lib/tasks/assets.rake:53:in `block (3 levels) in <top (required)>'
/var/www/discourse/lib/tasks/assets.rake:52:in `each'
/var/www/discourse/lib/tasks/assets.rake:52:in `block (2 levels) in <top (required)>'
/var/www/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:62:in `block in each_connection'
/var/www/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:60:in `each'
/var/www/discourse/vendor/gems/rails_multisite/lib/rails_multisite/connection_management.rb:60:in `each_connection'
/var/www/discourse/lib/tasks/assets.rake:50:in `block in <top (required)>'
/var/www/discourse/lib/tasks/assets.rake:60:in `block in <top (required)>'

Is this my missing some step or library , or is there a problem in the source?


Error in development env with desktop.scss
NoMethodError: undefined method `dirname' for "app/assets/stylesheets/desktop.scss":String
(Sam Saffron) #2

Pretty sure @neil fixed an error around this area in the last few days


(songjiayang) #3

oh, thank for so much , i will upgrade my code and do a check a again …


(Sam Saffron) #4

This topic was automatically closed after 2 days. New replies are no longer allowed.