I am having issues pushing my rails project to heroku. I get a \"Precompiling assets failed\" message . I am new to programming and new to ruby on rails. I really need some
The error message indicates that one of your JavaScript (or CoffeeScript) files has a syntax error. Unfortunately, the message doesn't give you enough information to locate the correct asset and line number. However, you can narrow down your search by precompiling locally with
rake assets:precompile
Which should output something similar to
ExecJS::RuntimeError: Unexpected token: operator (=)
(in /path/to/railsapp/app/assets/javascripts/path/to/asset.js)
...
This indicates that the error is in the file path/to/asset.js. Without knowing the contents of this file, I can only guess that you have a misplaced = somewhere in there. Take a closer look at that file and see if anything looks out of place.
Keep in mind, running rake assets:precompile locally will generate assets in public/assets/. You do not want to check those into your git repository, be sure to delete them before committing your fix to the broken asset file.