저는 heroku로 밀어 넣으려고하는 레일 3.1 앱이 있습니다. 푸시가 작동하는 동안 자산을 긁어 모으려고하면 오류가 발생합니다. 오류가 발생합니다.`rake assets : precompile`을 실행할 때 오류가 발생했습니다.
Unexpected token punc, expected punc (line: 11225, col: 7, pos: 321149)
undefined
(in /Users/Matt/Orchive/Orchive/app/assets/javascripts/application.js)
그러나이 application.js 파일에는 몇 가지 의견 만 있습니다. 여기있다 : 난 정말 자산을 이해하지
// This is a manifest file that'll be compiled into including all the files listed below.
// Add new JavaScript/Coffee code in separate files in this directory and they'll automatically
// be included in the compiled file accessible from http://example.com/assets/application.js
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
// the compiled file.
//
//= require jquery
//= require jquery_ujs
//= require_tree
하지만 밀어 전에 터미널에서 rake assets:precompile
을 실행하는 노력이 큰 오류
/Users/Matt/.rvm/rubies/ruby-1.9.2-p180/bin/ruby /Users/Matt/.rvm/gems/ruby-1.9.2-p180/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
rake aborted!
Unexpected token punc, expected punc (line: 11225, col: 7, pos: 321149)
undefined
(in /Users/Matt/Orchive/Orchive/app/assets/javascripts/application.js)
Tasks: TOP => assets:precompile:primary
(See full trace by running task with --trace)
rake aborted!
Command failed with status (1): [/Users/Matt/.rvm/rubies/ruby-1.9.2-p180/bi...]
Tasks: TOP => assets:precompile
(See full trace by running task with --trace)
있어
나는 이것을 편집하고 무엇을 그 변경할 수 있습니다 더 도움이된다면 --trace
으로 표시됩니다. 이 방법은 일반적인 방법으로 쉽게 해결할 수없는 오류라고 생각합니다.
오류의 원인이되는 application.js 행이 도움이 될 수 있습니다. 이상한 부분 인 – sosborn
의 경우 app/assets/javascript/application.js에 주석 만 포함됩니다. – Vasseurth
그 디렉토리에 다른 javascript 파일이 있습니까? – sosborn