mirror of
				https://github.com/capistrano/capistrano
				synced 2023-03-27 23:21:18 -04:00 
			
		
		
		
	
		
			
				
	
	
		
			32 lines
		
	
	
	
		
			805 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
	
		
			805 B
		
	
	
	
		
			Markdown
		
	
	
	
	
	
---
 | 
						|
layout: default
 | 
						|
title: A remote server automation and deployment tool written in Ruby.
 | 
						|
---
 | 
						|
 | 
						|
### A Simple Task
 | 
						|
 | 
						|
```ruby
 | 
						|
role :demo, %w{example.com example.org example.net}
 | 
						|
task :uptime do
 | 
						|
  on roles(:demo), in: :parallel do |host|
 | 
						|
    uptime = capture(:uptime)
 | 
						|
    puts "#{host.hostname} reports: #{uptime}"
 | 
						|
  end
 | 
						|
end
 | 
						|
```
 | 
						|
 | 
						|
Capistrano extends the *Rake* DSL with methods specific to running commands
 | 
						|
`on()` servers.
 | 
						|
 | 
						|
### For Any Language
 | 
						|
 | 
						|
Capistrano is written in Ruby, but it can easily be used to deploy any
 | 
						|
language.
 | 
						|
 | 
						|
If your language or framework has special deployment requirements, Capistrano can easily be
 | 
						|
extended to support them.
 | 
						|
 | 
						|
### Source Code
 | 
						|
 | 
						|
<div class="github-widget" data-repo="capistrano/capistrano"></div>
 | 
						|
<div class="github-widget" data-repo="capistrano/capistrano.github.io"></div>
 |