2017-11-23 21 views
0

생산 번들 간부 레이크 자산 RAILS_ENV을 = 할 시도 : 사전 컴파일오류 상태 : 사전 컴파일

이 오류 메시지 받기 :

ExecJS::ProgramError: Unexpected token: operator (>) (line: 48027, col: 50, pos: 1986183) 

Error 
    at new JS_Parse_Error (<eval>:2357:10748) 
    at js_error (<eval>:2357:10967) 
    at croak (<eval>:2357:19192) 
    at token_error (<eval>:2357:19329) 
    at unexpected (<eval>:2357:19417) 
    at expr_atom (<eval>:2357:27609) 
    at maybe_unary (<eval>:2357:30102) 
    at expr_ops (<eval>:2357:30860) 
    at maybe_conditional (<eval>:2357:30952) 
    at maybe_assign (<eval>:2357:31395) 
    at maybe_assign (<eval>:2357:31569) 
    at expression (<eval>:2357:31708) 
    at expr_list (<eval>:2357:27913) 
    at subscripts (<eval>:2357:29811) 
    (in /home/parts-soft/www/parts-soft/releases/20171122232617/apps/www/app/assets/javascripts/application.js) 
new JS_Parse_Error ((execjs):2357:10748) 
js_error ((execjs):2357:10967) 
croak ((execjs):2357:19192) 
token_error ((execjs):2357:19329) 
unexpected ((execjs):2357:19417) 
expr_atom ((execjs):2357:27609) 
maybe_unary ((execjs):2357:30102) 
expr_ops ((execjs):2357:30860) 
maybe_conditional ((execjs):2357:30952) 
maybe_assign ((execjs):2357:31395) 
maybe_assign ((execjs):2357:31569) 
expression ((execjs):2357:31708) 
expr_list ((execjs):2357:27913) 
subscripts ((execjs):2357:29811) 
/home/parts-soft/.rvm/gems/[email protected]/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:36:in `rescue in block in eval' 
/home/parts-soft/.rvm/gems/[email protected]/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:33:in `block in eval' 
/home/parts-soft/.rvm/gems/[email protected]/gems/execjs-2.6.0/lib/execjs/ruby_racer_runtime.rb:75:in `block in lock' 

내가 RAILS_ENV을 = 생산 번들 간부를 레이크 자산 : 사전 컴파일 : 모든

Sprockets::FileNotFound: couldn't find file 'handlebars.runtime' 
    (in /home/oil/www/oil/releases/20171122232617/apps/www/app/assets/javascripts/application.js:32) 

내가 무엇을 할 수 말해?
app.js에서 변경된 사항이 없습니다

답변

0

모든 애셋을 로컬에서 컴파일하십시오.

시도 다음 단계 :

  1. Gemfile

    group :assets do gem 'sass-rails' gem 'coffee-rails' gem 'therubyracer' end

  2. 실행 설정/환경/production.rb에서 bundle install

  3. 변화 라인의 코드 아래에 추가 config.assets.compile = true

  4. 실행 명령 :

    RAILS_ENV=production rake assets:precompile