【问题标题】:Capistrano deployment error at task create_release任务 create_release 的 Capistrano 部署错误
【发布时间】:2013-12-24 10:44:52
【问题描述】:

各位开发者早上好!

这是我在 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

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

这里的任何人都可以知道这个错误的线索吗?

【问题讨论】:

  • 发布你的 capistrano 食谱

标签: ruby sinatra capistrano


【解决方案1】:

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

【讨论】:

  • 这个固定的地雷
猜你喜欢
  • 1970-01-01
  • 2013-04-05
  • 2015-07-22
  • 1970-01-01
  • 1970-01-01
  • 2016-10-08
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多