Note that there are some explanatory texts on larger screens.

plurals
  1. PODeploying a git local repository with Capistrano 3
    text
    copied!<p>I' trying to deploy my rails app with capistrano 3 but I have this error message when I run <code>cap production deploy --trace</code>:</p> <pre><code>** Invoke production (first_time) ** Execute production ** Invoke load:defaults (first_time) ** Execute load:defaults ** Invoke deploy (first_time) ** Execute deploy ** Invoke deploy:starting (first_time) ** Execute deploy:starting ** Invoke deploy:check (first_time) ** Execute deploy:check ** Invoke git:check (first_time) ** Invoke git:wrapper (first_time) ** Execute git:wrapper INFO [707e609f] Running /usr/bin/env mkdir -p /tmp/my_app_name/ on 88.xxx.xxx.xxx DEBUG [707e609f] Command: /usr/bin/env mkdir -p /tmp/my_app_name/ cap aborted! deploy /var/lib/gems/1.9.1/gems/net-ssh-2.7.0/lib/net/ssh.rb:215:in `start' /var/lib/gems/1.9.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:169:in `ssh' /var/lib/gems/1.9.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:122:in `block in _execute' /var/lib/gems/1.9.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:119:in `tap' /var/lib/gems/1.9.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:119:in `_execute' /var/lib/gems/1.9.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:66:in `execute' /var/lib/gems/1.9.1/gems/capistrano-3.0.1/lib/capistrano/tasks/git.rake:13:in `block (3 levels) in &lt;top (required)&gt;' /var/lib/gems/1.9.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:54:in `instance_exec' /var/lib/gems/1.9.1/gems/sshkit-1.2.0/lib/sshkit/backends/netssh.rb:54:in `run' /var/lib/gems/1.9.1/gems/sshkit-1.2.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute' Tasks: TOP =&gt; git:check =&gt; git:wrapper </code></pre> <p>It seems to come from my git repository. Here are my deploy.rb and production.rb:</p> <p><strong>deploy.rb</strong>:</p> <pre><code>set :application, 'my_app_name' set :deploy_to, '/var/www/my_app/' set :deploy_via, :copy set :scm, :git set :repo_url, 'file://.git/' </code></pre> <p><strong>production.rb</strong>:</p> <pre><code>set :stage, :production role :app, %w{deploy@88.xxx.xxx.xxx} role :web, %w{deploy@88.xxx.xxx.xxx} </code></pre>
 

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