Note that there are some explanatory texts on larger screens.

plurals
  1. PODeploying with Capistrano
    primarykey
    data
    text
    <p>I am using Ruby on Rails 3.0.9 and I trying to setup the Capistrano gem (following the <em>Agile Web Development with Rails</em> book - Fourth Edition). I setup git and all related directories\files on the remote machine (it works) and all "basic" things related to Capistrano. Now if I run from my local machine the following commands those work as expected:</p> <pre><code>cap deploy:setup # ... cap deploy:check # ... # You appear to have all necessary dependencies installed </code></pre> <p>At this time on the server machine in my project directory I have the following directories (created by Capistrano):</p> <pre><code>&lt;my_project_dir&gt;/releases &lt;my_project_dir&gt;/shared </code></pre> <p><em>Nothing more</em>.</p> <p><strong>What I should do now?</strong> For example, have I to upload all my application file from my local machine to the remote machine?</p> <p>P.S.: I also setup my Apache2 server to point to the <code>&lt;my_project_dir&gt;/current/public</code> directory but Capistrano didn't create that folder.</p> <hr> <p><strong>UPDATE</strong> for <em>@Alex</em></p> <p>If I run the <code>cap deploy</code> command I get the following:</p> <pre><code> * executing `deploy' * executing `deploy:update' ** transaction: start * executing `deploy:update_code' updating the cached checkout on all servers executing locally: "git ls-remote root@&lt;SERVER_IP_ADDRESS&gt;:/git/&lt;my_project_name&gt;.com.git master" command finished in 3086ms * executing "if [ -d /srv/www/&lt;my_project_name&gt;.com/shared/cached-copy ]; then cd /srv/www/&lt;my_project_name&gt;.com/shared/cached-copy &amp;&amp; git fetch -q origin &amp;&amp; git fetch --tags -q origin &amp;&amp; git reset -q --hard 36ccf7b6f63041ee8dcdf4ca0a7c0b10dbc8bad1 &amp;&amp; git clean -q -d -x -f; else git clone -q root@&lt;SERVER_IP_ADDRESS&gt;:/git/&lt;my_project_name&gt;.com.git /srv/www/&lt;my_project_name&gt;.com/shared/cached-copy &amp;&amp; cd /srv/www/&lt;my_project_name&gt;.com/shared/cached-copy &amp;&amp; git checkout -q -b deploy 36ccf7b6f63041ee8dcdf4ca0a7c0b10dbc8bad1; fi" servers: ["&lt;SERVER_IP_ADDRESS&gt;"] [&lt;SERVER_IP_ADDRESS&gt;] executing command ** [&lt;SERVER_IP_ADDRESS&gt; :: err] Host key verification failed. ** [&lt;SERVER_IP_ADDRESS&gt; :: err] fatal: The remote end hung up unexpectedly command finished in 396ms *** [deploy:update_code] rolling back * executing "rm -rf /srv/www/&lt;my_project_name&gt;.com/releases/20110820175634; true" servers: ["&lt;SERVER_IP_ADDRESS&gt;"] [&lt;SERVER_IP_ADDRESS&gt;] executing command command finished in 353ms failed: "sh -c 'if [ -d /srv/www/&lt;my_project_name&gt;.com/shared/cached-copy ]; then cd /srv/www/&lt;my_project_name&gt;.com/shared/cached-copy &amp;&amp; git fetch -q origin &amp;&amp; git fetch --tags -q origin &amp;&amp; git reset -q --hard 36ccf7b6f63041ee8dcdf4ca0a7c0b10dbc8bad1 &amp;&amp; git clean -q -d -x -f; else git clone -q root@&lt;SERVER_IP_ADDRESS&gt;:/git/&lt;my_project_name&gt;.com.git /srv/www/&lt;my_project_name&gt;.com/shared/cached-copy &amp;&amp; cd /srv/www/&lt;my_project_name&gt;.com/shared/cached-copy &amp;&amp; git checkout -q -b deploy 36ccf7b6f63041ee8dcdf4ca0a7c0b10dbc8bad1; fi'" on &lt;SERVER_IP_ADDRESS&gt; </code></pre> <p><em>Note</em>: <code>failed: ...</code> on the last line. What is the problem?</p>
    singulars
    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