Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error while deploying to Heroku #71

Closed
nrtechbytes opened this issue Jul 9, 2015 · 6 comments
Closed

Error while deploying to Heroku #71

nrtechbytes opened this issue Jul 9, 2015 · 6 comments

Comments

@nrtechbytes
Copy link

Hi

I am working on a web app which is deployed on Heroku.
My app's integration with blogit works absolutely fine on localhost.

However, it gives the below mentioned error while trying to push to Heroku.

Any ideas/suggestions would be much appreciated.
Thanks in advance.


rake aborted!
remote: Sass::SyntaxError: Invalid CSS after "": expected selector or at-rule, was "{"
remote: (in /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/blogit-1.1.1/app/assets/stylesheets/blogit/themes/default.css.map)
remote: (sass):1
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sass-3.4.15/lib/sass/scss/parser.rb:1162:in expected' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sass-3.4.15/lib/sass/scss/parser.rb:1098:inexpected'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sass-3.4.15/lib/sass/scss/parser.rb:43:in parse' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sass-3.4.15/lib/sass/engine.rb:403:in_to_tree'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sass-3.4.15/lib/sass/engine.rb:278:in render' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/sass_compressor.rb:24:inevaluate'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/tilt-1.4.1/lib/tilt/template.rb:103:in render' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/context.rb:197:inblock in evaluate'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/context.rb:194:in each' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/context.rb:194:inevaluate'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/bundled_asset.rb:25:in initialize' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/base.rb:377:innew'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/base.rb:377:in build_asset' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/index.rb:94:inblock in build_asset'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/caching.rb:58:in cache_asset' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/index.rb:93:inbuild_asset'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/base.rb:287:in find_asset' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/index.rb:61:infind_asset'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:211:in block in find_asset remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:257:inbenchmark'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:210:in find_asset' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:119:inblock in compile'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:118:in each' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/sprockets/manifest.rb:118:incompile'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.3.2/lib/sprockets/rails/task.rb:70:in block (3 levels) in define' remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-2.12.4/lib/rake/sprocketstask.rb:146:inwith_logger'
remote: /tmp/build_0a8078a9a3ce382baab4b5879b3fd68d/vendor/bundle/ruby/2.2.0/gems/sprockets-rails-2.3.2/lib/sprockets/rails/task.rb:69:in `block (2 levels) in define'
remote: Tasks: TOP => assets:precompile
remote: (See full trace by running task with --trace)
remote: !
remote: ! Precompiling assets failed.
remote: !

@botnyst
Copy link

botnyst commented Jul 30, 2015

I am having the same issue, any update?

@frankis
Copy link

frankis commented Aug 1, 2015

@justthisguy
Copy link

It seems this is not just a Heroku problem. Where as I do get a similar problem on Heroku

Sass::SyntaxError: Invalid CSS after ""sources": [": expected "|", was "]," (in /tmp/..../vendor/bundle/ruby/2.2.0/bundler/gems/blogit 9e3876f/app/assets/stylesheets/blogit/themes/default.css.map) (sass):4

The same problem shows up when precompiling production assets locally.

RAILS_ENV=production bin/rake assets:precompile
rake aborted!
Sass::SyntaxError: Invalid CSS after ""sources": [": expected "|", was "],"
(in /Users/jtg/.rbenv/versions/2.2.2/lib/ruby/gems/2.2.0/gems/blogit-1.1.1/app/assets/stylesheets/blogit/themes/default.css.map)
(sass):4

Some say this [": expected "|", was "]," is a problem where scss is compiling less but that does not seem to be our problem.

This does run find for me locally in development mode where there is no precompilation.

@Bodacious
Copy link
Owner

I think the issue here was caused by the map json files that were include in with the theme CSS.

I've removed these files—can you try installing the latest version and see if that fixes the issues?

gem "blogit", github: "katanacode/blogit", branch: "master"

@justthisguy
Copy link

@Bodacious, I gave that a try and everything looks great. I precompiled locally and is running on Heroku.

@Bodacious
Copy link
Owner

@ken I'll keep that in mind when I'm working on the themes in future

Sorry for the slow response, I've been on vacation 

Gavin Morrice / Managing Director

Katana Code Ltd

www.katanacode.com

gavin@katanacode.com

+44 7787 432 733


This message is confidential and may contain privileged information. If it is not for you please inform us then delete it.

Any information in this message that does not relate to the official business of Katana Code is neither given nor endorsed by Katana Code. This e-mail does not constitute nor form part of a contract or unilateral obligation. Internet e-mails are not necessarily secure. Katana Code does not accept responsibility for changes made to this message after it was sent or viruses transmitted through this e-mail or any attachment. You should carry out your own virus checking procedure before opening any attachment to this e-mail. The e-mail and IT systems of Katana Code are subject to random monitoring and recording by or on behalf of Katana Code.

Katana Code is a trading name of Katana Code Ltd (Company No. SC410908), Registered Office: Lodge House, Priory Lane, Dunfermline KY12 7DT, +44 845 519 4329, www.katanacode.com

On Tue, Sep 1, 2015 at 7:30 PM, Ken Decanio notifications@github.com
wrote:

@Bodacious, I gave that a try and everything looks great. I precompiled locally and is running on Heroku.

Reply to this email directly or view it on GitHub:
#71 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants