我利用 dropbox 建立 git repository 使用上沒有問題,但在部署我參考了http://stackoverflow.com/questions/11207341/capistrano-local-git-repository-cloning-to-remote-asks-for-password-despite-ssh的設定,還是無效,請問有人試成功過嗎?謝謝。
截取 deploy.rb 部份片段
server "production-server-ip", :web, :app, :db, primary: true
set :application, "myapp"
set :user, "deployer"
set :local_user, "joshchang"
set :deploy_to, "/home/#{user}/apps/#{application}"
set :deploy_via, :remote_cache
set :use_sudo, false
set :rails_env, "production"
set :scm, "git"
set :repository, "/home/#{user}/apps/#{application}"
set :local_repository, "/Users/joshchang/Dropbox/git-rep/rb_test"
set :branch, "master"
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
在 local 我有開 ssh,從 production server 連至 local 確認過沒問題 有一點我不懂的是,應該要開哪個帳號給 production server 連進?