I run cap deploy:setup
And towards the end, I see the following issues:
** [out :: xxx.xx.xx.132] Unrecognized command line flag:
''--autolibs=read-only'' ( see: ''rvm usage'' )
** [out :: xxx.xx.xx.134] Already installed ruby-1.9.3-p0.
** [out :: xxx.xx.xx.134] To reinstall use:
** [out :: xxx.xx.xx.134]
** [out :: xxx.xx.xx.134] rvm reinstall ruby-1.9.3-p0
** [out :: xxx.xx.xx.134]
** [out :: xxx.xx.xx.132] Ruby ruby-1.9.3-p0 is not installed.
** [out :: xxx.xx.xx.134] gemset created spree_ecommerce =>
/usr/local/rvm/gems/ruby-1.9.3-p0@spree_ecommerce
command finished in 931ms
failed: "bash -c ''__LAST_STATUS=0; export
CURL_HOME=\"${TMPDIR:-${HOME}}/.rvm-curl-config.$$\"; mkdir
${CURL_HOME}/;
{ [[ -r ${HOME}/.curlrc ]] && cat ${HOME}/.curlrc; echo
\"silent\"; echo
\"show-error\"; } > $CURL_HOME/.curlrc; sudo -p
''\\''''sudo password: ''\\''''
sg rvm -c \"/usr/local/rvm/bin/rvm --autolibs=read-only install
ruby-1.9.3-p0 -j $(cat /proc/cpuinfo 2>/dev/null | (grep vendor_id || echo
''\\''''vendor_id :
Other''\\'''';) | wc -l) \"; sudo -p
''\\''''sudo password:
''\\'''' sg rvm -c \"/usr/local/rvm/bin/rvm
ruby-1.9.3-p0 do rvm gemset create
spree_ecommerce\" || __LAST_STATUS=$?; rm -rf $CURL_HOME; exit
${__LAST_STATUS}''" on xxx.xx.xx.132
Note that I have another rails application, that deploys fine, whose deploy
configuration is very very similar. Here''s the deploy.rb:
require ''capistrano/ext/multistage''
require "rvm/capistrano"
require ''bundler/capistrano''
after "deploy:update_code",
"deploy:symlink_shared_configs"
load ''deploy/assets''
set :application, "SpreeSite"
set :stages, ["staging", "production"]
set :default_stage, "production"
set :scm, "git"
set :repository,
"git-9UaJU3cA/F/QT0dZR+AlfA@public.gmane.org:MyAccount/SpreeSite.git"
set :branch, "master"
default_run_options[:pty] = true
role :web, "xxx.xx.xx.134" # Your HTTP
server,
Apache/etc
role :app, "xxx.xx.xx.134" # This may be
the
same as your `Web` server
role :db, "xxx.xx.xx.132", :primary => true # This is
where
Rails migrations will run
set :deploy_to, "~/public_html/mysite.com/"
set :user, "ubuntuuser"
set :use_sudo, false
set :deploy_via, :remote_cache
set :rvm_ruby_string, ''ruby-1.9.3-p0@spree_ecommerce''
#this failed on
remote server when using ruby-1.9.3@spree_ecommerce !!
set :rvm_autolibs_flag, "read-only"
set :rvm_type, :system
set :rvm_install_with_sudo, true
before ''deploy:setup'', ''rvm:install_rvm''
# install RVM
before ''deploy:setup'',
''rvm:install_ruby'' # install Ruby and create
gemset, OR:
before ''deploy:setup'',
''rvm:create_gemset'' # only create gemset
# If you are using Passenger mod_rails uncomment this:
namespace :deploy do
desc "Symlink configuration files"
task :symlink_shared_configs, :roles => [:db,:app] do
run "ln -nfs #{shared_path}/config/database.yml
#{release_path}/config/database.yml"
end
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
end
#deploy/production.rb:
set :deploy_to, "/home/ubuntuuser/public_html/mysite.com/"
set :rails_env, ''production''
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/5c19417a-45e3-4d0a-8dff-980ca22d513d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.