I have changed capistrano-rvm-0.0.3/lib/capistrano/tasks/rvm.rake :
SSHKit.config.command_map = Hash.new do |hash, key|
if fetch(:rvm_map_bins).include?(key.to_s)
puts "check rvm 1"
# here (1)
hash[key] = "#{fetch(:rvm_path)}/bin/rvm #{fetch(:rvm_ruby_version)} do
#{key}"
elsif key.to_s == "rvm"
puts "check rvm 2"
# here (2)
hash[key] = "#{fetch(:rvm_path)}/bin/rvm"
else
puts "check rvm 3: " + key.to_s
# and here (3)
hash[key] = key
end
end
So... before every Running ... i have "check rvm 3: ...." or not any string
at all.
Then
check rvm 1
INFO [46af5a18] Running rvm use 2.0.0 do bundle --gemfile ....
and then there was not any "check rvm" strings
and before "Running bundle exec rake assets:precompile" too.
Is it normal?
понедельник, 13 января 2014 г., 9:07:06 UTC+4 пользователь Slava Kanaykin
написал:
>
> Using: Capistrano + capistrano-bundler + capistrano-rails +capistrano-rvm
> Problem:
> > cap production deploy
> ...
> and when deploy:assets:precompile
>
> ... bundle exec rake assets:precompile
> bash: bundle: command not found
> cap aborted!
>
> we need "rvm use 2.0.0 do bundle exec rake ...." , but there is only
> "bundle exec rake"
>
> Or such combination ( rvm + bundle) is not allowed?
>
> -------------------------------------------
>
> Versions:
>
> - Ruby 2.0.0
> - Capistrano 3.0.1, capistrano-bundler (1.1.1), capistrano-rails
> (1.1.0), capistrano-rvm (0.0.3)
> - Rake 10.1.1 / Rails 4.0.2 / etc
>
> Platform:
>
> - Working on Linux 3.8.0-35-generic #50~precise1-Ubuntu SMP Wed Dec 4
> 17:28:45 UTC 2013 i686 i686 i386 GNU/Linux
> - Deploying to Linux 2.6.32-5-amd64 #1 SMP Mon Sep 23 22:14:43 UTC
> 2013 x86_64 GNU/Linux
>
> Logs:
>
> - INFO [8212b6b0] Running /usr/local/rvm/bin/rvm 2.0.0 do bundle
> --gemfile /home/deploy/projects/op1/releases/20140113042011/Gemfile --path
> /home/deploy/projects/op1/shared/bundle --deployment --quiet
> --binstubs /home/deploy/projects/op1/shared/bin --without development
> test on gotar.ru
> DEBUG [8212b6b0] Command: cd
> /home/deploy/projects/op1/releases/20140113042011
> && /usr/local/rvm/bin/rvm 2.0.0 do bundle --gemfile
> /home/deploy/projects/op1/releases/20140113042011/Gemfile
> --path /home/deploy/projects/op1/shared/bundle --deployment --quiet
> --binstubs /home/deploy/projects/op1/shared/bin --without development
> test
> INFO [8212b6b0] Finished in 1.831 seconds with exit status 0
> (successful).
> - ...
> INFO [58eaf64f] Running bundle exec rake assets:precompile on gotar.ru
> DEBUG [58eaf64f] Command: cd
> /home/deploy/projects/op1/releases/20140113042011
> && ( RAILS_ENV=production bundle exec rake assets:precompile )
> DEBUG [58eaf64f] bash: bundle: command not found
>
>
--
You received this message because you are subscribed to the Google Groups
"Capistrano" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web, visit
https://groups.google.com/d/msgid/capistrano/6fd7f459-fa44-424c-bbcf-cb707c3bc968%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.