mirror of
https://github.com/capistrano/capistrano
synced 2023-03-27 23:21:18 -04:00
Link to upgrade manual
This commit is contained in:
parent
d5135d50d2
commit
65539b9f34
2 changed files with 13 additions and 13 deletions
|
@ -545,7 +545,7 @@ logging infrastructure and streaming IO formatters:
|
|||
|
||||
### Upgrading
|
||||
|
||||
The best place to go here is the [upgrading documentation][] to get deeper
|
||||
The best place to go here is the [upgrading documentation](/documentation/upgrading/) to get deeper
|
||||
into the specifics.
|
||||
|
||||
The simple version is to say that there is *no **direct** upgrade path*,
|
||||
|
|
|
@ -430,7 +430,7 @@ your application.</p>
|
|||
<p>An example of it's usage might be:</p>
|
||||
|
||||
<div>
|
||||
<pre data-line=''><code class='language-ruby'>h = SSHKit::Host.new 'example.com'
|
||||
<pre data-line=''><code class='language-ruby'>h = SSHKit::Host.new 'example.com'
|
||||
h.properties.roles ||= %i{wep app}</code></pre>
|
||||
</div>
|
||||
|
||||
|
@ -456,7 +456,7 @@ task :precompile do
|
|||
on :sprockets_asset_host, reject: lambda { |h| h.properties.no_release } do
|
||||
within fetch(:latest_release_directory)
|
||||
with rails_env: fetch(:rails_env) do
|
||||
execute :rake, 'assets:precompile'
|
||||
execute :rake, 'assets:precompile'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -509,7 +509,7 @@ arbitrary command, for example:</p>
|
|||
|
||||
<div>
|
||||
<pre data-line=''><code class='language-ruby'># Rakefile (even without Capistrano loaded)
|
||||
require 'sshkit'
|
||||
require 'sshkit'
|
||||
desc "Check the uptime of example.com"
|
||||
task :uptime do |h|
|
||||
execute :uptime
|
||||
|
@ -564,7 +564,7 @@ execute :git, :clone, "........", "......."</code></pre>
|
|||
|
||||
<div>
|
||||
<pre data-line=''><code class='language-ruby'># Capistrano 3.0.x
|
||||
file = '/tmp/somefile'
|
||||
file = '/tmp/somefile'
|
||||
unless test("-e #{file}")
|
||||
execute :touch, file
|
||||
end</code></pre>
|
||||
|
@ -648,7 +648,7 @@ logging infrastructure and streaming IO formatters:</p>
|
|||
<div>
|
||||
<pre data-line=''><code class='language-ruby'># Capistrano 3.0.x
|
||||
on hosts do |host|
|
||||
f = '/some/file'
|
||||
f = '/some/file'
|
||||
if test("[ -d #{f} ]")
|
||||
execute :touch, f
|
||||
else
|
||||
|
@ -659,7 +659,7 @@ end</code></pre>
|
|||
|
||||
<h3 id="toc_15"> Upgrading</h3>
|
||||
|
||||
<p>The best place to go here is the [upgrading documentation][] to get deeper
|
||||
<p>The best place to go here is the <a href="/documentation/upgrading/">upgrading documentation</a> to get deeper
|
||||
into the specifics.</p>
|
||||
|
||||
<p>The simple version is to say that there is <em>no **direct</em>* upgrade path*,
|
||||
|
@ -1017,7 +1017,7 @@ your application.</p>
|
|||
<p>An example of it's usage might be:</p>
|
||||
|
||||
<div>
|
||||
<pre data-line=''><code class='language-ruby'>h = SSHKit::Host.new 'example.com'
|
||||
<pre data-line=''><code class='language-ruby'>h = SSHKit::Host.new 'example.com'
|
||||
h.properties.roles ||= %i{wep app}</code></pre>
|
||||
</div>
|
||||
|
||||
|
@ -1043,7 +1043,7 @@ task :precompile do
|
|||
on :sprockets_asset_host, reject: lambda { |h| h.properties.no_release } do
|
||||
within fetch(:latest_release_directory)
|
||||
with rails_env: fetch(:rails_env) do
|
||||
execute :rake, 'assets:precompile'
|
||||
execute :rake, 'assets:precompile'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -1096,7 +1096,7 @@ arbitrary command, for example:</p>
|
|||
|
||||
<div>
|
||||
<pre data-line=''><code class='language-ruby'># Rakefile (even without Capistrano loaded)
|
||||
require 'sshkit'
|
||||
require 'sshkit'
|
||||
desc "Check the uptime of example.com"
|
||||
task :uptime do |h|
|
||||
execute :uptime
|
||||
|
@ -1151,7 +1151,7 @@ execute :git, :clone, "........", "......."</code></pre>
|
|||
|
||||
<div>
|
||||
<pre data-line=''><code class='language-ruby'># Capistrano 3.0.x
|
||||
file = '/tmp/somefile'
|
||||
file = '/tmp/somefile'
|
||||
unless test("-e #{file}")
|
||||
execute :touch, file
|
||||
end</code></pre>
|
||||
|
@ -1235,7 +1235,7 @@ logging infrastructure and streaming IO formatters:</p>
|
|||
<div>
|
||||
<pre data-line=''><code class='language-ruby'># Capistrano 3.0.x
|
||||
on hosts do |host|
|
||||
f = '/some/file'
|
||||
f = '/some/file'
|
||||
if test("[ -d #{f} ]")
|
||||
execute :touch, f
|
||||
else
|
||||
|
@ -1246,7 +1246,7 @@ end</code></pre>
|
|||
|
||||
<h3 id="toc_15"> Upgrading</h3>
|
||||
|
||||
<p>The best place to go here is the [upgrading documentation][] to get deeper
|
||||
<p>The best place to go here is the <a href="/documentation/upgrading/">upgrading documentation</a> to get deeper
|
||||
into the specifics.</p>
|
||||
|
||||
<p>The simple version is to say that there is <em>no **direct</em>* upgrade path*,
|
||||
|
|
Loading…
Add table
Reference in a new issue