3

這裏是我的deploy.rb塊Materialise的任何來源找不到multi_json-1.8.0軌

require "bundler/capistrano" 

set :rvm_ruby_string, "ruby-2.0.0-p247" 
set :rvm_type, :user 

set :application, "myapp" 
set :repository, "[email protected]:user/myapp.git" 
set :user, "my-server-username-ssh" 
set :branch, "master" 

set :deploy_to, "/var/rails_apps/myapp" # I have current, release and shared directory here 
set :deploy_via, :copy 
set :use_sudo, true 
set :rvm_install_with_sudo, true 

default_run_options[:pty] = true 

set :port, 1234 

set :scm, :git 

role :web, "myapp.com" 
role :app, "myapp.com" 
role :db, "myapp.com", :primary => true 
role :db, "myapp.com" 

after "deploy:update_code","deploy:config_symlink" 

set :rvm_type, :system 

# If you are using Passenger mod_rails uncomment this: 
namespace :deploy do 
    task :start do ; end 
    task :stop do ; end 
    task :restart, :roles => :app, :except => { :no_release => true } do 
    run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" 
    end 

    task :config_symlink do 
    #run "cp #{release_path}/config/database.yml.example #{release_path}/config/database.yml" 
    end 

    desc 'Re-establish database.yml' 
    task :set_database_symlink do 
    run "rm -fr #{current_path}/config/database.yml && cd #{current_path}/config && 
     ln -nfs #{shared_path}/database.yml database.yml" 
    end 
end 

before 'deploy', 'rvm:install_ruby' 
before 'deploy', 'rvm:create_gemset' 

require "rvm/capistrano" 

,如果我跑帽deploy:migrate

我得到錯誤沒有數據庫發現錯誤。

當我手動運行耙分貝:創建我的服務器我面對這個錯誤

/usr/local/rvm/gems/[email protected]/gems/bundler-1.3.5/lib/bundler/spec_set.rb:92:in `block in materialize': Could not find multi_json-1.8.0 in any of the sources (Bundler::GemNotFound) 

如何創建和遷移我的數據庫。

編輯-1

即使我已經更新使用

rvm osx-ssl-certs update all

在我的寶石列表我的證件,我可以罰款

multi_json (1.8.2)

回答

0

好像你可能有多個版本的multi_json的要求寶石。您可以嘗試指定寶石版本,如:

gem 'multi_json', '1.8.0' 

在本地重新運行bundle命令並在部署之前檢查您的Gemfile.lock。

1

我已經有這個寶石安裝,但我需要

bundle update multi_json 
+0

甜 - 解決我的問題謝謝! – BKSpurgeon

相關問題