我是使用 capistrano 部署 Rails 网站的新手。
我成功地将我的更改推送到了 git 存储库,没有出现任何错误。
现在我需要使用 Capistrano 将相同的更改推送到生产服务器。
当我运行时,cap deploy
我收到以下错误:
urjit@urjit-Lenovo:~/workspace/dev$ cap deploy
* executing `deploy'
* executing `deploy:update'
** transaction: start
* executing `deploy:update_code'
executing locally: "git ls-remote git@github.com:devrepublicrep/devcockpit.git HEAD"
/usr/bin/git
* executing "git clone -q git@github.com:devrepublicrep/devcockpit.git /home/devcockpit/releases/20120820062500 && cd /home/devcockpit/releases/20120820062500 && git checkout -q -b deploy c51262dbb81a66f307127c85add0786552c03cad && (echo c51262dbb81a66f307127c85add0786552c03cad > /home/devcockpit/releases/20120820062500/REVISION)"
servers: ["dev.devrepublic.nl"]
Password:
[dev.devrepublic.nl] executing command
** [dev.devrepublic.nl :: err] error: git-checkout-index: unable to write file public/javascripts/ckeditor/_source/plugins/embed/dialogs/embed.js
** [dev.devrepublic.nl :: err] fatal: cannot create directory at public/javascripts/ckeditor/_source/skins/v2/images
** [dev.devrepublic.nl :: err] fatal: Untracked working tree file '.gitignore' would be overwritten by merge.
command finished
*** [deploy:update_code] rolling back
* executing "rm -rf /home/devcockpit/releases/20120820062500; true"
servers: ["dev.devrepublic.nl"]
[dev.devrepublic.nl] executing command
command finished
failed: "sh -c 'git clone -q git@github.com:devrepublicrep/devcockpit.git /home/devcockpit/releases/20120820062500 && cd /home/devcockpit/releases/20120820062500 && git checkout -q -b deploy c51262dbb81a66f307127c85add0786552c03cad && (echo c51262dbb81a66f307127c85add0786552c03cad > /home/devcockpit/releases/20120820062500/REVISION)'" on dev.devrepublic.nl
请帮我。谢谢。