Capfile
require "capistrano/setup"
require "capistrano/deploy"
require "capistrano/scm/git"
install_plugin Capistrano::SCM::Git
require 'capistrano/rails'
require 'capistrano/passenger'
require 'capistrano/rvm'
set :rvm_type, :user
set :rvm_ruby_version, '2.5.1'
Dir.glob("lib/capistrano/tasks/*.rake").each { |r| import r }
staging.rb
server 'IP', user: 'deploy', roles: %w{app db web}
set :deploy_to, '/home/deploy/project-name'
set :stage, :staging
set :rails_env, "staging"
deploy.rb
set :application, "project-name"
set :repo_url, "git@bitbucket.org:url"
append :linked_files, "config/database.yml", "config/secrets.yml"
append :linked_dirs, "log", "tmp/pids", "tmp/cache", "tmp/sockets", "vendor/bundle", "public/system", "public/uploads"
и после
cap staging deploy
сайт даютмне эта ошибка:
'development' database is not configured. Available: ["staging"] (ActiveRecord::AdapterNotSpecified)
Я пытался исследовать проблему в Интернете, но безрезультатно, всегда приложение настроено на разработку