大佬教程收集整理的这篇文章主要介绍了与本地存储库在Windows上使用capistrano部署会引发错误,大佬教程大佬觉得挺不错的,现在分享给大家,也给大家做个参考。
为了让Capistrano工作,库必须可以被外部访问?
我在我的git仓库的本地目录下开发了一个rails应用程序。
我经常做:
git add . git commit -am "it works after my recent changes"
现在我想部署:
neo4j不以Neo4j.bat开头
编辑registry值
警告:运行命令“sh ./configure.win”的状态为127
@H_888_0@msmdpump到SSASPHP:PEAR在Windows上尝试打开c: windows pear.ini进行写入,即使configuration文件是c: pear pear.ini
cap deploy
但是,这给了我这个错误消息(path稍微改变):
* execuTing `deploy' * execuTing `deploy:update' ** transaction: start * execuTing `deploy:update_code' execuTing locally: "git ls-remote D:\path\to\railsapp\.git HEAD" * execuTing "git clone D:\path\to\railsapp\.git /home/user/railsapp/releases/20110221122258 && cd /home/user/railsapp/releases/20110221122258 && git checkout -b deploy 70426fc8c8e81dff69f3ebf667de4f91dbd90119 && (echo 70426fc8c8e81dff69f3ebf667de4f91dbd90119 > /home/user/railsapp/releases/20110221122258/REVISION)" servers: ["my.server.tld"] [my.server.tld] execuTing command ** [my.server.tld :: out] Initialized empty Git repository in /home/user/railsapp/releases/20110221122258/.git/ ** [my.server.tld :: out] Error reading response length from authentication socket. ** [my.server.tld :: out] Permission denied (publickey). ** fatal: The remote end hung up unexpectedly command finished *** [deploy:update_code] rolling BACk * execuTing "rm -rf /home/user/railsapp/releases/20110221122258; true" servers: ["my.server.tld"] [my.server.tld] execuTing command command finished Failed: "sh -c 'git clone D:\path\to\railsapp\.git /home/user/railsapp/releases/20110221122258 && cd /home/user/railsapp/releases/20110221122258 && git checkout -b deploy 70426fc8c8e81dff69f3ebf667de4f91dbd90119&& (echo 70426fc8c8e81dff69f3ebf667de4f91dbd90119 > /home/user/railsapp/releases/20110221122258/REVISION)'" on my.server.tld
我究竟做错了什么?
我在我的deploy.rb
require 'bundler/capistrano' set :user,"username" set :password,"password" set :ssh_options,{ :forWARD_agent => true } set :application,"railsapp" set :repository,"D:\path\to\railsapp\.git" set :scm,:git set :scm_verbose,true default_run_options[:pty] = true set :use_sudo,false set :deploy_to,"/home/#{user}/#{application}" role :app,"my.domain.tld" role :web,"my.domain.tld" role :db,"my.domain.tld",:priMary => true namespace :deploy do desc "RestarTing mod_rails with restart.txt" task :restart,:roles => :app,:except => { :no_release => true } do run "touch #{Current_path}/tmp/restart.txt" end desc "Additional Symlinks ( database.yml,etc. )" task :additional_symlink,:roles => :app do run "ln -s #{shared_path}/config/database.yml #{Current_path}/config/database.yml" end end after "deploy:symlink","deploy:additional_symlink","deploy:migrate"
在Windows上是否有修复TortiseSVN覆盖图标
Heroku:“https://git.heroku.com”的用户名:git
SHellexecute是否将共享环境variables与启动过程
有没有在Windows机器上使用valgrind工具?
您的服务器需要能够访问托管代码的存储库。 现在,它试图检查代码,因为它没有被授权访问您的本地计算机时失败。
我会建议托管在Github上的存储库(免费,如果你不介意源是公开的)。
你也可以在服务器上设置一个git仓库作为远程主机,并在那里从你的本地仓库推送更改。 然后配置capistrano以在部署时查找该存储库。
如果没有任何意义,就很乐意详细说明这一点。
将my.domain.tld更改为远程服务器的localhost或URL
我认为你需要改变部署策略来复制:
set :deploy_via,:copy
以上是大佬教程为你收集整理的与本地存储库在Windows上使用capistrano部署会引发错误全部内容,希望文章能够帮你解决与本地存储库在Windows上使用capistrano部署会引发错误所遇到的程序开发问题。
如果觉得大佬教程网站内容还不错,欢迎将大佬教程推荐给程序员好友。
本图文内容来源于网友网络收集整理提供,作为学习参考使用,版权属于原作者。
如您有任何意见或建议可联系处理。小编QQ:384754419,请注明来意。