gpt4 book ai didi

ruby - 任务 create_release 中的 Capistrano 部署错误

转载 作者:数据小太阳 更新时间:2023-10-29 08:38:20 26 4
gpt4 key购买 nike

各位开发者早上好!

这是我在 Stackoverflow 上的第一篇文章!

我在部署 Sinatra 应用程序时遇到问题,无法弄清楚为什么它不起作用,所以我可能需要你们中的一个人的帮助。

当我运行以下命令时

bundle exec cap staging deploy

我收到以下错误(创建了 config/deploy.rb 文件以及 config/deploy/staging.rb):

 INFO [864af525] Running /usr/bin/env git archive development | tar -x -C /var/www/mykio-admin/releases/20131224102759 on <our server address>
DEBUG [864af525] Command: cd /var/www/mykio-admin/repo && ( GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/mykio-admin/git-ssh.sh /usr/bin/env git archive development | tar -x -C /var/www/mykio-admin/releases/20131224102759 )
DEBUG [864af525] fatal: Not a valid object name
DEBUG [864af525]
DEBUG [864af525] tar:
DEBUG [864af525] Ceci ne ressemble pas à une archive de type « tar »
DEBUG [864af525]
DEBUG [864af525] tar:
DEBUG [864af525] Arrêt avec code d'échec à cause des erreurs précédentes
DEBUG [864af525]
cap aborted!
git stdout: Nothing written
git stderr: Nothing written
/home/babausse/.rvm/gems/ruby-1.9.3-p484/gems/sshkit-1.1.0/lib/sshkit/command.rb:94:in `exit_status='
[...]
/home/babausse/.rvm/gems/ruby-1.9.3-p484/gems/sshkit-1.1.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
Tasks: TOP => git:create_release
(See full trace by running task with --trace)

我尝试运行以下命令来检查是否一切正常

bundle exec cap staging deploy:check

我没有得到任何错误,我觉得很奇怪,它是为了检查部署配置是否正常,所以部署应该是可以的,但不是。

这里有人能知道这个错误吗?

最佳答案

看起来您可能没有将“开发”分支推送到远程存储库,并且 git 未能尝试归档您的本地“开发”分支。

关于ruby - 任务 create_release 中的 Capistrano 部署错误,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/20759475/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com