Tag: bitbucket

Capistrano bitbucket – 权限被拒绝(publickey)

我正在尝试使用Capistrano将我的应用程序部署到我的DigitalOcean服务器上。 这不是我第一次使用Capistrano在DigitalOcean上配置RoR服务器,这就是为什么我感到困惑; 我的工作流程没有改变任何内容。 这是我的Capistrano配置文件: require ‘bundler/capistrano’ require ‘rvm/capistrano’ set :application, “foobar” set :repository, “git@bitbucket.org:sergiotapia/foobar.git” set :ping_url, “http://192.168.1.1/” set :scm, :git set :scm_verbose, true default_run_options[:pty] = true set :user, “sergiotapia” # The user on the VPS server. set :password, “hunter2” set :use_sudo, false set :deploy_to, “/home/sergiotapia/www/#{application}” set :deploy_via, :remote_cache set :keep_releases, 1 set :rails_env, “production” set […]

heroku上的bitbucket私有存储库

我有一个需要gem的rails应用程序。 我在bitbucket上将这个gem托管在私有存储库中。 在我的Gemfile中,我添加了以下gem: gem “my-gem”, :git => “git@bitbucket.org:my-username/my-gem.git”, :branch => ‘master’ 我想在heroku上部署我的rails应用程序 git push heroku master 现在我总是得到以下错误 Fetching git@bitbucket.org:my-username/my-git-repo.git Host key verification failed. fatal: The remote end hung up unexpectedly 我理解错误,因为存储库设置为私有。 但是我该如何解决这个问题呢? 我已经读过这个问题: 在bitbucket上使用git部署到Heroku ,但我没有真正得到答案:) ..

SSHKit ::亚军:: ExecuteError

$ bundle exec cap production deploy (Backtrace限制为导入任务)上限中止! SSHKit ::亚军:: ExecuteError: 执行Psara @ sakura时出现exception:git退出状态:128 git stdout:没有写git stderr:Permission denied(publickey)。 致命:远程端意外挂断 SSHKit ::命令::失败: git退出状态:128 git stdout:没有写 git stderr:权限被拒绝(publickey)。 致命:远程端意外挂断 任务:TOP => git:check(通过使用–trace运行任务来查看完整跟踪)部署失败并显示错误: 执行Psara @ sakura时出现exception: git退出状态:128 git stdout:没有写任何内容 git stderr:权限被拒绝(publickey)。 致命:远程端意外挂断 * deploy.rb 设置:应用程序,’Psara’ set:repo_url,’git @ bitbucket.org:CBLaughter / psara.git’ set:deploy_to,’/ home / Psara / Psara’ set:default_run_options,:pty => true […]