我遇到将rails应用程序部署到Digital Ocean时出现问题。该应用程序使用Rails 5,ruby 2.4.0,capistrano和乘客。我试图通过SSH将bitbucket中的私有存储库连接到数字海洋,这可能是我的问题。
这是我的deploy.rb
fatal: destination path 'var/www/APP_NAME/repo' already exists and is not an empty directory.
...
SSHKit::Command::Failed: git exit status: 128
...
这是我的deploy / production.rb文件:
gem 'rails', '~> 5.0.0', '>= 5.0.0.1'
ruby '2.4.0'
group :development do
# Access an IRB console on exception pages or by using <%= console %> anywhere in the code.
gem 'web-console'
gem 'listen', '~> 3.0.5'
...
gem 'capistrano', '~>3.4.0'
gem 'capistrano-ssh-doctor', '~> 1.0'
gem 'capistrano-rails', '~>1.1'
gem 'capistrano-passenger'
end
我一直关注此RFC 2617: HTTP Authentication。
我可以完成上限暂存部署:检查但是当我运行上限暂存部署时出现以下错误:
# Load DSL and set up stages
require 'capistrano/setup'
require 'capistrano/ssh_doctor'
# Include default deployment tasks
require 'capistrano/deploy'
# Include tasks from other gems included in your Gemfile
#
# For documentation on these, see for example:
#
# https://github.com/capistrano/rvm
# https://github.com/capistrano/rbenv
# https://github.com/capistrano/chruby
# https://github.com/capistrano/bundler
# https://github.com/capistrano/rails
# https://github.com/capistrano/passenger
#
# require 'capistrano/rvm'
# require 'capistrano/rbenv'
# require 'capistrano/chruby'
require 'capistrano/bundler'
require 'capistrano/rails/assets'
require 'capistrano/rails/migrations'
require 'capistrano/passenger'
# Load custom tasks from `lib/capistrano/tasks` if you have any defined
Dir.glob('lib/capistrano/tasks/*.rake').each { |r| import r }
非常感谢任何帮助!
更新: 宝石 -
init: function() {
chrome.storage.sync.get('series', storageData => {
this.data = storageData
});
}
Capfile:
init: function() {
var self = this;
chrome.storage.sync.get('series', function (storageData) {
self.data = storageData
});
}
谢谢!