0

최근에 자산 파이프 라인으로 이상한 동작이 발생하기 시작했습니다. Ruby on Rails (3.2.3)를 사용하고 있습니다.Rails Assets : expected ')'got '} - 명령이 상태 (1)로 실패했습니다.

# From Gemfile 
gem 'jquery-rails' 
gem 'therubyracer', :require => 'v8' 
gem "less-rails" 
gem 'twitter-bootstrap-rails', '>= 2.1.6' 
gem 'sass-rails', '~> 3.2.3' 
gem 'devise', '~> 2.2.3'  # Note: Recently upgraded 

나는 최근에 내 자산을 컴파일 가서이 벽 타격 오전 : : 주목할만한 라이브러리 내가 사용하고 내가 어떤이를 찾기 위해 노력하고이 문제를 조사 지난 몇 시간을 보냈습니다

$ bundle exec rake assets:precompile RAILS_ENV=development --trace 
** Invoke assets:precompile (first_time) 
** Execute assets:precompile 
/Users/tim/.rvm/rubies/ruby-1.9.3-p374/bin/ruby /Users/tim/.rvm/gems/ruby-1.9.3-p374/bin/rake assets:precompile:all RAILS_ENV=development RAILS_GROUPS=assets --trace 
** Invoke assets:precompile:all (first_time) 
** Execute assets:precompile:all 
** Invoke assets:precompile:primary (first_time) 
** Invoke assets:environment (first_time) 
** Execute assets:environment 
** Invoke environment (first_time) 
** Execute environment 
** Invoke tmp:cache:clear (first_time) 
** Execute tmp:cache:clear 
** Execute assets:precompile:primary 
expected ')' got '}' 
Command failed with status (1): [/Users/tim/.rvm/rubies/ruby-1.9.3-p374/bin...] 

을 이 문제가 발생하는 곳에 대한 실마리. 이 시점에서 내 주요 문제는 피드백/오류 출력 레일에서지고 있어요. 추적을 통해, 나는 여전히 많은 자산 파일/디렉토리 중 하나에 존재하는 것으로 보이는 문제를 조사하고 있습니다. 컴파일하는 동안 디버깅이나 파일 추적의 다른 방법 (더 자세한 컴파일 모드일까요?)이이 시점에서 좋을 것입니다.

내 다음 단계는 내 Git 커밋 로그를 통해 자산 파이프 라인의 변경 사항이이 문제를 일으켰을 수 있는지 확인하는 것입니다.

+1

맞춤 자산을 잘못 입력했는지 확인해 보시기 바랍니다. js 및 스타일 시트에서 코드를 검사하는 것이 그리 어렵지 않을 것입니다. 응용 프로그램이 dev 모드에서 제대로 작동합니까? –

답변

1

트위터 부트 스트랩 보석에 오류가 있습니다. CSS 구문이 잘못되었습니다. 매니페스트 파일 application.css에서 제거하고 애셋을 미리 컴파일하여 다시 시작하십시오. 정말 부트 스트랩 보석이라면 마지막 버전을 사용하십시오.