简体   繁体   English

任务create_release上的Capistrano部署错误

[英]Capistrano deployment error at task create_release

Good morning fellow developers ! 各位开发人员,大家上午好!

Here I am for my very first post on Stackoverflow ! 在这里,我是关于Stackoverflow的第一篇文章!

I have a problem deploying a Sinatra application, and can't figure out why it doesn't work, so I might need a little help from one of you. 我在部署Sinatra应用程序时遇到问题,无法弄清为什么它不起作用,因此我可能需要你们中的一些帮助。

When I run the following command 当我运行以下命令

bundle exec cap staging deploy

I get the following error (the config/deploy.rb file is created, along with the config/deploy/staging.rb) : 我收到以下错误(已创建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)

I tried to run the following command to check if everything is ok 我试图运行以下命令来检查一切是否正常

bundle exec cap staging deploy:check

I don't get any error and I find it weird, it's made to check if the deployment configuration is ok, so the deployment should be possible, and it's not. 我没有收到任何错误,但我发现它很奇怪,它是用来检查部署配置是否正确的,因此应该可以部署,而不能。

Anybody here could have a clue about this error ? 这里有人对此错误有任何线索吗?

看来您可能没有将'development'分支推送到远程存储库,并且git无法尝试归档本地的'development'分支。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM