Capistrano不断要求我为每个deplyoyment密码。 我不让它发生?capistrano密码提示
红宝石版本1.8.7 REE
Capistrano的版本2.5.19
这是我capfile和目录权限。
Everything up-to-date
** transaction: start
* executing `deploy:update_code'
updating the cached checkout on all servers
executing locally: "git ls-remote [email protected]:username/
app_name.git master"
* executing "if [ -d /var/www/app_name/shared/cached-copy ]; then
cd /var/www/app_name/shared/cached-copy && git fetch -q origin && git
reset -q --hard 5d47453e28385200daa971ca4982632caf7fb67e && git clean -
q -d -x -f; else git clone -q [email protected]:username/app_name.git/
var/www/app_name/shared/cached-copy && cd /var/www/app_name/shared/
cached-copy && git checkout -q -b deploy
5d47453e28385200daa971ca4982632caf7fb67e; fi"
servers: ["1xx.2xx.xxx.xxx"]
Password:
[173.230.158.13] executing command
command finished
更新
OK,我在一个超级烂得一塌糊涂,现在我得到这个错误。
我加了一个 “部署” 用户如..
adduser --system --home /home/deploy --shell /bin/bash --ingroup nogroup deploy
chmod u+w /etc/sudoers
echo "deploy ALL=(ALL) NOPASSWD: ALL" >> /etc/sudoers
chmod u-w /etc/sudoers
然后我说你在我的.ssh/config文件中所提到的配置。
Host prod
Hostname xxx.xxx.xxx.xx
User deploy
ForwardAgent yes
请帮忙!
你的新的错误是因为你的新用户部署“可能不会有机会获得你想从git的更新文件。只需将你的.ssh/config文件中的用户重新命名为你正在连接的原始用户... – 2010-09-30 04:44:50