2
我有一個簡單的任務... cap foreman:restart
。我可以通過PuTTY(使用Pageant)訪問服務器,但顯然Capistrano並不知道這一點?從Windows的Capistrano與選美
** [out :: staging.fanmouth.com] restart: Rejected send message, 1 matched rules; type="method_call", sender=":1.4640" (uid=1000 pid=13681 comm="restart fanmouth-scheduler ") interface="com.ubuntu.Upstart0_6.Job" member="Restart" error name="(unset)" requested_reply="0" destination="com.ubuntu.Upstart" (uid=0 pid=1 comm="/sbin/init")
** [out :: staging.fanmouth.com]
←[2;37mcommand finished in 8231ms←[0m
failed: "env PATH=/usr/local/rbenv/shims:$PATH RAILS_STAGE=staging sh -c 'sudo -p '\\''sudo password: '\\'' start fanmouth-scheduler || restart fanmouth-scheduler'" on staging.fanmouth.com
它要我輸入密碼......我輸入密碼,然後得到密碼。如果我輸錯密碼,它會告訴我(三次並退出)。
deploy.rb
set :ssh_options, { :forward_agent => true }
在網絡上一些網站的搜索顯示,應設置...我已經用了相同的結果錯誤的嘗試。
我對SSH或者Pageant瞭解不多。任何想法,我要去哪裏錯了?