require 'rvm/capistrano'
require 'bundler/capistrano'
set :application, "mysite"
set :rails_env, "production"
set :domain, "root@mysite"
set :deploy_to, "/srv/#{application}"
set :use_sudo, false
set :unicorn_conf, "#{deploy_to}/current/config/unicorn.rb"
set :unicorn_pid, "#{deploy_to}/shared/pids/unicorn.pid"
set :rvm_ruby_string, '1.9.3@rails3'
set :rvm_type, :system
set :scm, :git
set :repository, "git@bitbucket.org:IAM/mysite.git"
set :branch, "master"
role :web, domain
role :app, domain
role :db, domain, :primary => true
before 'deploy:setup', 'rvm:install_rvm', 'rvm:install_ruby'
after 'deploy:update_code', :roles => :app do
run "ln -s #{deploy_to}/shared/db #{current_release}/db/data"
run "chown -R www-data:www-data #{deploy_to}"
run "cd #{deploy_to}/current && rake assets:precompile"
end
Во время deploy rake assets:precompile выдаёт вот такую ошибку:
[root@mysite] executing command
*** [err :: root@mysite] /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby /usr/local/rvm/gems/ruby-1.9.3-p194@global/bin/rake assets:precompile:all RAILS_ENV=production RAILS_GROUPS=assets
*** [err :: root@mysite]
Если попробовать сделать rake assets:clean, выдаёт вот это:
* executing "cd /srv/mysite/current && rake assets:clean"
servers: ["mysite"]
[root@mysite] executing command
*** [err :: root@mysite] /usr/local/rvm/rubies/ruby-1.9.3-p194/bin/ruby /usr/local/rvm/gems/ruby-1.9.3-p194@global/bin/rake assets:clean:all RAILS_ENV=production RAILS_GROUPS=assets
*** [err :: root@mysite]
*** [err :: root@mysite] rm -rf /srv/mysite/releases/20120924111656/public/assets
*** [err :: root@mysite]
command finished in 26518ms
Куда копать? Как получить подробности, из-за чего оно валится?