0
運行預編譯(力推的Heroku後),我看到一個上百萬^^^^^^^^^^^^,然後:Heroku預編譯Rails 4由於節點故障?
! Precompiling assets failed.
!
! Push rejected, failed to compile Ruby app
:
node.js:134
throw e; // process.nextTick error, or 'error' event on first tick
^
SyntaxError: Unexpected token ILLEGAL
at Module._compile (module.js:399:25)
at Object..js (module.js:410:10)
at Module.load (module.js:336:31)
at Function._load (module.js:297:12)
at Array.<anonymous> (module.js:423:10)
at EventEmitter._tickCallback (node.js:126:26)
,然後跟蹤後
我有這個在我的config/application.rb中
config.assets.initialize_on_precompile = false
config.serve_static_assets = true
這些寶石3(中默認的外面,一個Postgres的,並且在測試或開發的)
gem 'devise'
gem 'angularjs-rails'
gem 'rails_12factor', group: :production
我已經玩了幾件事情,讓這個工作。我已經配置heroku忽略測試和開發寶石。
我的一些角度文件看起來像:'source.controller.js',但我懷疑這是問題所在。
任何幫助或線索都會很好,如果有其他信息會有幫助,生病立即張貼。感謝您的時間!