展開には capistrano 3.0.1 と capistrano-rails 1.1.0 を使用しています。展開はこれまでのところうまく機能assets:precompile
していますが、実行されないだけです。そのフェーズは、次のメッセージで毎回スキップされます。
WARN [SKIPPING] No Matching Host for /usr/bin/env if test ! -d /var/www/versioneye/releases/20140111161403; then echo "Directory does not exist '/var/www/versioneye/releases/20140111161403'" 1>&2; false; fi
WARN [SKIPPING] No Matching Host for bundle exec rake assets:precompile
WARN [SKIPPING] No Matching Host for /usr/bin/env if test ! -d /var/www/versioneye/releases/20140111161403; then echo "Directory does not exist '/var/www/versioneye/releases/20140111161403'" 1>&2; false; fi
WARN [SKIPPING] No Matching Host for /usr/bin/env cp /var/www/versioneye/releases/20140111161403/public/assets/manifest* /var/www/versioneye/releases/20140111161403/assets_manifest_backup
WARN [SKIPPING] No Matching Host for /usr/bin/env if test ! -d /var/www/versioneye/releases/20140111161403; then echo "Directory does not exist '/var/www/versioneye/releases/20140111161403'" 1>&2; false; fi
WARN [SKIPPING] No Matching Host for /usr/bin/env find public/images public/javascripts public/stylesheets -exec touch -t 201401111614.03 {} ';'; true
で役割を 1 つだけ定義しましたconfig/deploy/stagging
。
role :app, %w{cap@aws-7}
そしてconfig/deploy.rb
、asset_roles を次のように設定します。
set :assets_roles, [:app] # Defaults to [:web]
なぜassets:precompile
処刑されないのか、何か考えはありますか?