1
0
Fork 0
mirror of https://github.com/capistrano/capistrano synced 2023-03-27 23:21:18 -04:00
capistrano/index.markdown

33 lines
833 B
Markdown
Raw Normal View History

2013-06-12 16:44:00 -04:00
---
layout: default
title: A remote server automation and deployment tool written in Ruby.
---
### A Simple Task
2014-01-03 16:41:22 -05:00
{% highlight ruby %}
2013-07-01 19:48:56 -04:00
role :demo, %w{example.com example.org example.net}
2014-07-16 10:29:53 -04:00
task :uptime do
on roles(:demo), in: :parallel do |host|
2013-06-12 16:44:00 -04:00
uptime = capture(:uptime)
puts "#{host.hostname} reports: #{uptime}"
end
end
2014-01-03 16:41:22 -05:00
{% endhighlight %}
2013-06-12 16:44:00 -04:00
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
2013-06-30 08:23:14 -04:00
language.
2013-06-12 16:44:00 -04:00
2013-06-30 08:23:14 -04:00
If your language or framework has special deployment requirements, Capistrano can easily be
2013-06-12 16:44:00 -04:00
extended to support them.
2013-06-30 11:26:18 -04:00
### Source Code
2013-06-30 07:30:03 -04:00
<div class="github-widget" data-repo="capistrano/capistrano"></div>
2015-01-18 10:07:49 -05:00
<div class="github-widget" data-repo="capistrano/capistrano.github.io"></div>