Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

block in materialize Could not find multi_json-1.8.0 in any of the sources rails

Here is my deploy.rb

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"

if i run cap deploy:migrate

I am getting error no database found error.

And when i manually run rake db:create in my server I am facing this error

/usr/local/rvm/gems/ruby-2.0.0-p247@global/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)

How can i create and migrate my database.

Edit-1

Even i have updated my certificate using

rvm osx-ssl-certs update all

In my gem list i can fine

multi_json (1.8.2)

like image 368
Prabhakaran Avatar asked Jan 27 '26 11:01

Prabhakaran


1 Answers

I already had this gem installed but I need to

bundle update multi_json
like image 167
migueloop Avatar answered Jan 29 '26 02:01

migueloop



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!