Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy won't bundle install railties 3.2.3 on my server?
    primarykey
    data
    text
    <p>Rails 3.2.2 has been working fine in both my development environment, and on my server.</p> <p>I'm trying to upgrade to 3.2.3 by changing:</p> <pre><code>gem 'rails', '3.2.2' </code></pre> <p>to</p> <pre><code>gem 'rails', '3.2.3' </code></pre> <p>then running:</p> <pre><code>bundle update bundle </code></pre> <p>All goes well until I try to deploy to my server. During the deploy, I get this message:</p> <pre><code>An error occured while installing railties (3.2.3), and Bundler cannot continue. Make sure that `gem install railties -v '3.2.3'` succeeds before bundling. </code></pre> <p>I have logged into the server and ran the gem install railties -v '3.2.3' command and it works without problems. But the deploy always fails in the same way. </p> <p>I've tried to delete the cache directory as shown <a href="http://www.michaelhamrah.com/blog/2010/11/rails-fixing-bundle-no-metadata-found-issues/" rel="nofollow">here</a>, but I'm not sure I'm doing that correctly. I'm using rvm on the server and my development environment.</p> <p>Can anybody help point me in a direction on this?</p> <p>Here's my deploy.rb file:</p> <pre><code>require "bundler/capistrano" $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path. require "rvm/capistrano" # Load RVM's capistrano plugin. set :application, "teamsite" set :repository, "git@github.com:user/teamsite.git" set :deploy_to, "/home/website.com/rails/application/" set :user, "website.com" set :scm, :git set :use_sudo, false default_run_options[:pty] = true set :branch, "master" set :scm_verbose, true set :deploy_via, :remote_cache ssh_options[:forward_agent] = true task :staging do role :web, "staging.website.com" role :app, "staging.website.com" role :db, "staging.website.com", :primary =&gt; true end namespace :deploy do task :start do ; end task :stop do ; end task :restart, :roles =&gt; :app, :except =&gt; { :no_release =&gt; true } do run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}" end namespace :assets do task :precompile, :roles =&gt; :web, :except =&gt; { :no_release =&gt; true } do from = source.next_revision(current_revision) if capture("cd #{latest_release} &amp;&amp; #{source.local.log(from)} vendor/assets/ app/assets/ | wc -l").to_i &gt; 0 run %Q{cd #{latest_release} &amp;&amp; #{rake} RAILS_ENV=#{rails_env} #{asset_env} assets:precompile} else logger.info "Skipping asset pre-compilation because there were no asset changes" end end end end namespace :customs do task :create_symlink, :roles =&gt; :app do run &lt;&lt;-CMD ln -nfs #{shared_path}/files #{release_path}/files CMD run &lt;&lt;-CMD ln -nfs #{shared_path}/drawings #{release_path}/drawings CMD run &lt;&lt;-CMD ln -nfs #{shared_path}/photos #{release_path}/photos CMD end end after "deploy:create_symlink","customs:create_symlink" after "deploy", "deploy:cleanup" </code></pre> <p><strong>Update</strong></p> <p>I was able to finally fix this by deploying to a different user. But the question still remains: How would I clear out the gem cache for the old user?</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload