Note that there are some explanatory texts on larger screens.

plurals
  1. POTrouble deploying Rails 3.2.6 app with Capistrano
    primarykey
    data
    text
    <p>I've setup my Linode VPS properly with nginx, passenger, ruby 1.9.3-p194, and rails 3.2.6. I've built a simple Cap recipe (see below) which passes deploy:setup and deploy:check but fails on the assets precompile phase. I would try to run the precompile by hand on the remote server but Cap rollsback so I can't do it.</p> <p>The error looks like a PG error however I've tested a connection manually to the server based off my database.yml settings and it works perfect. Any idea what this could be?</p> <pre><code>deploy.rb require "bundler/capistrano" server "50.116.25.145", :web, :app, :db, primary: true set :application, "exigencad" set :user, "deploy" set :deploy_to, "/home/#{user}/#{application}" set :deploy_via, :remote_cache set :use_sudo, false set :scm, "git" set :repository, "git@github.com:teknull/#{application}.git" set :branch, "master" default_run_options[:pty] = true ssh_options[:forward_agent] = true after "deploy", "deploy:cleanup" # keep only the last 5 releases 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 task :after_update_code do run "ln -nfs #{deploy_to}/shared/config/database.yml #{release_path}/config/database.yml" end after :deploy, "assets:precompile" Error from Capistrano: executing `deploy:assets:precompile' * executing "cd /home/deploy/exigencad/releases/20120621170601 &amp;&amp; bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile" servers: ["50.116.25.145"] [50.116.25.145] executing command ** [out :: 50.116.25.145] rake aborted! ** [out :: 50.116.25.145] FATAL: Peer authentication failed for user "exigen" ** [out :: 50.116.25.145] ** [out :: 50.116.25.145] Tasks: TOP =&gt; environment ** [out :: 50.116.25.145] ** [out :: 50.116.25.145] (See full trace by running task with --trace) command finished in 6433ms *** [deploy:update_code] rolling back </code></pre>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    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