Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

rails:assets_precompile not working although working locally or via SSH #566

Closed
mmics opened this issue Sep 28, 2017 · 1 comment
Closed

Comments

@mmics
Copy link

mmics commented Sep 28, 2017

rails:assets_precompile gives me a Sass::SyntaxError: Invalid CSS after "...
When I invoke rails assets:precompile locally it works
When I SSH into the deploy target host and invoke RAILS_ENV="production" bundle exec rake assets:precompile it works, too

config.assets.css_compressor = :sass is disabled in the config/production.rb file.

I am using mina 1.0.7, rails (4.2.8), sass (3.5.1)

I have been trying to fix this issue for quite a while without success. I am not able to locate any CSS syntax errors in my code.

@mmics
Copy link
Author

mmics commented Sep 28, 2017

There was an error in my css syntax. I finally found it using scss-lint scss-lint app/assets/stylesheets/ |grep "\[E\]".

@mmics mmics closed this as completed Sep 28, 2017
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant