Vin*_*ois 2 ruby capistrano sinatra
各位开发者早上好!
\n\n这是我在 Stackoverflow 上的第一篇文章!
\n\n我在部署 Sinatra 应用程序时遇到问题,并且不明白为什么它不起作用,所以我可能需要你们中的一位的帮助。
\n\n当我运行以下命令时
\n\nbundle exec cap staging deploy\nRun Code Online (Sandbox Code Playgroud)\n\n我收到以下错误(创建了 config/deploy.rb 文件以及 config/deploy/staging.rb):
\n\n INFO [864af525] Running /usr/bin/env git archive development | tar -x -C /var/www/mykio-admin/releases/20131224102759 on <our server address>\nDEBUG [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 )\nDEBUG [864af525] fatal: Not a valid object name\nDEBUG [864af525] \nDEBUG [864af525] tar: \nDEBUG [864af525] Ceci ne ressemble pas \xc3\xa0 une archive de type \xc2\xab tar \xc2\xbb\nDEBUG [864af525] \nDEBUG [864af525] tar: \nDEBUG [864af525] Arr\xc3\xaat avec code d'\xc3\xa9chec \xc3\xa0 cause des erreurs pr\xc3\xa9c\xc3\xa9dentes\nDEBUG [864af525] \ncap aborted!\ngit stdout: Nothing written\ngit stderr: Nothing written\n/home/babausse/.rvm/gems/ruby-1.9.3-p484/gems/sshkit-1.1.0/lib/sshkit/command.rb:94:in `exit_status='\n[...]\n/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'\nTasks: TOP => git:create_release\n(See full trace by running task with --trace)\nRun Code Online (Sandbox Code Playgroud)\n\n我尝试运行以下命令来检查一切是否正常
\n\nbundle exec cap staging deploy:check\nRun Code Online (Sandbox Code Playgroud)\n\n我没有收到任何错误,我觉得很奇怪,它是为了检查部署配置是否正常,所以部署应该是可能的,但事实并非如此。
\n\n这里有人可以知道这个错误吗?
\n