私のアプリが正常に展開されるが、私はこのエラーを取得していそうです:私は資産をコンパイルしようとしているため、ここでの解決策を試してみたCapistranoは資産をコンパイルするエラー - 資産:プリコンパイル:非永続?
* executing "cd /home/deploy/tomahawk/releases/20120208222225 && bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile"
servers: ["ip_address"]
[ip_address] executing command
*** [err :: ip_address] /opt/ruby/bin/ruby /opt/ruby/bin/rake assets:precompile:nondigest RAILS_ENV=production RAILS_GROUPS=assets
:http://lassebunk.dk/2011/09/03/getting-your-assets-to-work-when-upgrading-to-rails-3-1/
そして、ここで:http://railsmonkey.net/2011/08/deploying-rails-3-1-applications-with-capistrano/
そして、ここに:ここにhttp://dev.af83.com/2011/09/30/capistrano-rails-3-1-assets-can-be-tricky.html
は私deploy.rbです:
require "bundler/capistrano"
load 'deploy/assets'
set :default_environment, {
'PATH' => "/opt/ruby/bin/:$PATH"
}
set :application, "tomahawk"
set :repository, "repo_goes_here"
set :deploy_to, "/home/deploy/#{application}"
set :rails_env, 'production'
set :branch, "master"
set :scm, :git
set :user, "deploy"
set :runner, "deploy"
set :use_sudo, true
role :web, "my_ip"
role :app, "my_ip"
role :db, "my_ip", :primary => true
set :normalize_asset_timestamps, false
after "deploy", "deploy:cleanup"
namespace :deploy do
desc "Restarting mod_rails with restart.txt"
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{current_path}/tmp/restart.txt"
end
[:start, :stop].each do |t|
desc "#{t} task is a no-op with mod_rails"
task t, :roles => :domain do ; end
end
end
task :after_update_code do
run "ln -nfs #{deploy_to}/shared/config/database.yml #{release_path}/config/database.yml"
end
私はまったく同じ私のレール3.1アプリを展開するときに持っています。私はそれがどこかの[sprockets rake task](https://github.com/rails/rails/blob/master/actionpack/lib/sprockets/assets.rake)に隠れていると思うが、私はそれを見ない。 'precompile:assets:nondigest'タスクがstderrなどに警告を記録することができますか?これはcapistranoによって選択されますか? – HectorMalot
真実を伝えるために、この非本質的なものは私の理解の範囲から少し外れています(まだプリコンパイルの周りを頭で囲んでいます:) - しかし、私はこれを友人に見せて、こう言いました... "すべて 私は出力が何とかうんざりしていると思う、そのエラーストリームは、正常な出力が正常に終了する限り、通常の出力を使用すると、実際のエラーが実行を停止します。 – fatfrog