rake assets : precompile не работает (rails 3.1.1)

Я развертываюсь на heroku, но я видел, что файлы css не обслуживаются (их также нельзя найти на героку).

Я прочитал, что мне нужно сделать rake assets: сначала предварительно скомпилировать локально, но когда я это сделаю, я получаю:

C:\project>bundle exec rake assets:precompile --trace

** Invoke assets:precompile (first_time)
** Execute assets:precompile
rake aborted!
undefined: Unexpected token: operator (<)
  (in C:/project/app/assets/javascripts/application.js)

Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

У меня ничего нет в 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 .

Спасибо

Обновление

При удалении файла .js.erb я получаю следующую ошибку:

C:\project>bundle exec rake assets:precompile RAILS_ENV=production --trace
** Invoke assets:precompile (first_time)
** Execute assets:precompile
rake aborted!
706: unexpected token at 'C:\Users\me\AppData\Local\Temp\execjs20111021-6448-ei2nm3.js(2, 3) Microsoft JScript runtime error: Out of memory

'
  (in C:/project/app/assets/javascripts/application.js)

Tasks: TOP => assets:precompile
(See full trace by running task with --trace)

По-прежнему возникают проблемы с компиляцией файлов erb css и js ...

Это похоже, не заканчивается .. Спасибо

7
задан Tilo 18 November 2011 в 16:37
поделиться