Note that there are some explanatory texts on larger screens.

plurals
  1. PODeploying Ruby on rails on Deamhost fails
    text
    copied!<p>I'm trying to deploy a simple Ruby on Rails app to dreamhost but I'm getting an error related to the bundle command. Here is the error:</p> <pre><code> servers: ["bullseye.dreamhost.com"] [bullseye.dreamhost.com] executing command command finished * executing "find /home/USER-NAME/MY-DOMAIN/releases/20110123014150/public/images /home/USER-NAME/MY-DOMAIN/releases/20110123014150/public/stylesheets /home/USER-NAME/MY-DOMAIN/releases/20110123014150/public/javascripts -exec touch -t 201101230141.52 {} ';'; true" servers: ["bullseye.dreamhost.com"] [bullseye.dreamhost.com] executing command command finished triggering after callbacks for `deploy:update_code' * executing `bundle:install' * executing "ls -xt /home/USER-NAME/MY-DOMAIN/releases" servers: ["bullseye.dreamhost.com"] [bullseye.dreamhost.com] executing command command finished * executing "bundle install --gemfile /home/USER-NAME/MY-DOMAIN/releases/20110123014150/Gemfile --path /home/USER-NAME/MY-DOMAIN/shared/bundle --deployment --quiet --without development test" servers: ["bullseye.dreamhost.com"] [bullseye.dreamhost.com] executing command *** [err :: bullseye.dreamhost.com] sh: bundle: command not found command finished *** [deploy:update_code] rolling back * executing "rm -rf /home/USER-NAME/MY-DOMAIN/releases/20110123014150; true" servers: ["bullseye.dreamhost.com"] [bullseye.dreamhost.com] executing command command finished failed: "sh -c 'bundle install --gemfile /home/USER-NAME/MY-DOMAIN/releases/20110123014150/Gemfile --path /home/USER-NAME/MY-DOMAIN/shared/bundle --deployment --quiet --without development test'" on bullseye.dreamhost.com </code></pre> <p>Here is my deploy.rb file.</p> <pre><code>require 'bundler/capistrano' set :user, "MY-USERNAME" set :password, "MY-PASSWORD" set :domain, 'bullseye.dreamhost.com' # Dreamhost servername where your account is located set :project, 'blog' # Your application as its called in the repository set :application, 'MY-DOMAIN' # Your app's location (domain or sub-domain name as setup in panel) set :applicationdir, "/home/#{user}/#{application}" # The standard Dreamhost setup # version control config set :scm_username, 'MY-SVN-USERNAME' set :scm_password, 'MY-SVN-PWD' set :repository, "http://MY-SVN-URL/01/blog/" # roles (servers) role :web, domain role :app, domain role :db, domain, :primary =&gt; true # deploy config set :deploy_to, applicationdir set :deploy_via, :export # additional settings default_run_options[:pty] = false # Forgo errors when deploying from windows 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 end </code></pre> <p>I found a similar question at <a href="https://stackoverflow.com/questions/4656591/bundle-install-failing-when-deploying-a-rails-3-app-to-dreamhost-with-capistrano">Bundle install failing when deploying a Rails 3 app to Dreamhost with Capistrano</a> but the solution didn't work. Anybody have any ideas as to what might be happening in my case?</p>
 

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