&tag(Capistrano3/トラブルシューティング);
task :list do
on roles(:web) do |host|
execute "ls"
end
end
bundle exec cap production deploy --trace
set :log_level, :debug
ssh remotehost 'cd /Users/sora/www/myapp/releases/20160616053411 && ( export RBENV_ROOT="$HOME/.rbenv" RBENV_VERSION="2.3.1" ; $HOME/.rbenv/bin/rbenv exec bundle install --path /Users/sora/www/myapp/shared/bundle --without development test --deployment --)'
task :printenv do
on roles(:web) do |host|
execute "printenv"
end
end
bundle exec cap production printenv
sudo apt-get install nodejs sudo yum install nodejs
gem.files = `git ls-files`.split($\)
ssh-add -D
set :default_env, {
# 'PKG_CONFIG_PATH' => '/opt/local/bin'
'PATH' => "/opt/local/bin:$PATH"
}
Gem Load Error is: This installation of RMagick was configured with ImageMagick 6.9.4 but ImageMagick 6.9.6-0 is in use