Note that there are some explanatory texts on larger screens.

plurals
  1. POCapistrano very slow
    text
    copied!<p>I am not sure where exactly the problem is located but Capistrano takes about 5 minutes to deploy an almost empty project.</p> <p>Can you tell me if I am doing something wrong or is it usual? </p> <p>I am using:</p> <ul> <li>Capistrano 2.9.0</li> <li>Rails 3.1.3</li> <li>Github Repository</li> <li>not too slow server (4 cores, 1 GB memory)</li> <li>ngix, passenger</li> </ul> <p>Here is the output I am getting: <a href="https://gist.github.com/1632009" rel="nofollow">https://gist.github.com/1632009</a></p> <p><strong>Capfile</strong></p> <pre><code>load 'deploy' if respond_to?(:namespace) # cap2 differentiator # Uncomment if you are using Rails' asset pipeline load 'deploy/assets' Dir['vendor/gems/*/recipes/*.rb','vendor/plugins/*/recipes/*.rb'].each { |plugin| load(plugin) } load 'config/deploy' # remove this line to skip loading any of the default tasks </code></pre> <p><strong>deploy.rb</strong></p> <pre><code># -*- encoding : utf-8 -*- require "bundler/capistrano" set :user, 'rubys' set :domain, 'example.com' set :application, 'EXAMPLE' # adjust if you are using RVM, remove if you are not $:.unshift(File.expand_path('./lib', ENV['rvm_path'])) require "rvm/capistrano" set :rvm_ruby_string, '1.9.2' #set :rvm_type, :user # file paths set :repository, "git@github.com:GITHUBREPO/ashop.git" set :deploy_to, "/apps/#{application}" # using a local git repository on the server you are deploying to. set :deploy_via, :remote_cache set :copy_exclude, [ '.git' ] # distribute your applications across servers (the instructions below put them # all on the same server, defined above as 'domain', adjust as necessary) role :app, domain role :web, domain role :db, domain, :primary =&gt; true set :deploy_via, :remote_cache set :scm, 'git' set :branch, 'master' set :scm_verbose, false set :use_sudo, false set :rails_env, :production namespace :deploy do desc "cause Passenger to initiate a restart" task :restart do run "touch #{current_path}/tmp/restart.txt" end end </code></pre> <p><strong>EDIT</strong></p> <ul> <li>Networkspeed workplace: <a href="http://www.speedtest.net/result/1714391142.png" rel="nofollow">http://www.speedtest.net/result/1714391142.png</a></li> <li>Speed Github - Server: ~ 300KiB</li> </ul>
 

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