【发布时间】: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