Ruby on Rails 3.1.0과 Capistrano를 사용하고 있습니다. 프로덕션 모드에서 응용 프로그램을 만들 때 문제가 있습니다. 원격 시스템은 우분투 10.4를 실행합니다. 로컬 컴퓨터는 Snow Leopard 10.6.7을 실행하는 MacOS입니다. 나는이 오류가 웹 페이지에 액세스하려고하면자산 파이프 라인 : Capistrano로 Rails 3.1 애플리케이션을 배치 할 때의 문제
uninitialized constant Rake::DSL
: 내가 카피 스트라 노에 배포 할 때
나는이 오류가 내가하기 위해 할 수있는해야
ActionView::Template::Error (application.css isn't precompiled)
원격 시스템에서 프로덕션 모드로 작동하도록 응용 프로그램을 만드시겠습니까? 내 Capfile
파일에서
내가 가진 내 Gemfile
파일에서
# Uncomment if you are using Rails' asset pipeline
load 'deploy/assets'
내가 가진 :
group :production do
gem 'execjs'
gem 'therubyracer'
end
나는 load 'deploy/assets'
내가 더 이상 uninitialized constant Rake::DSL
하지만 난을하지 않는 언급 경우 계속 ActionView::Template::Error (application.css isn't precompiled)
오류가 발생합니다.
프로덕션에서 자산을 사전 컴파일합니까? –
@Mike Bevz -'bundle exec rake assets : precompile' 명령을 실행하면됩니까? 그 뜻이라면 원격 서버 console \ terminal에서이 명령을 실행하지만'rake aborted! system/logo.png가 사전 컴파일되지 않았습니다. (/ /app/assets/stylesheets/application.css.scss) ' –
user12882
예, 저는 자산 : 사전 컴파일을 의미했습니다. 캡 배포는 무엇입니까? –