Note that there are some explanatory texts on larger screens.

plurals
  1. POrails / capistrano - error compiling assets
    primarykey
    data
    text
    <p>When I deploy with capistrano I get an error (and rollback) when capistrano attempts to run assets:precompile.</p> <p>I'm using rails 3.2.1, bundler 1.0.22, capistrano 2.11.2</p> <p>If I run rake assets:precompile from /webapps/myapp/current it runs successfully.</p> <p>error:</p> <pre><code>failed: "sh -c 'cd /webapps/myapp/releases/20120304160347 &amp;&amp; bundle exec rake RAILS_ENV=production RAILS_GROUPS=assets assets:precompile'" </code></pre> <p>deploy.rb</p> <pre><code>require "bundler/capistrano" load 'deploy/assets' set :application, "myapp" set :domain, '24.17.71.95' set :repository, "." set :deploy_via, :copy set :local_repository, '/home/me/myapp/.git' set :deploy_to, '/webapps/myapp/' set :scm, :none #:git set :user, 'me' set :password, 'me$pw' # Or: `accurev`, `bzr`, `cvs`, `darcs`, `git`, `mercurial`, `perforce`, `subversion` or `none` default_run_options[:pty] = true role :web, domain # Your HTTP server, Apache/etc role :app, domain # This may be the same as your `Web` server role :db, domain, :primary =&gt; true # This is where Rails migrations will run set :branch, 'master' # if you're still using the script/reaper helper you will need # these http://github.com/rails/irs_process_scripts before "deploy:assets:precompile", "bundle:install" # If you are using Passenger mod_rails uncomment this: 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>
    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.
 

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