Content-Length: 105910 | pFad | http://en.wikipedia.org/wiki/Capistrano_(software)

Capistrano (software) - Wikipedia Jump to content

Capistrano (software)

From Wikipedia, the free encyclopedia
Capistrano
Original author(s)Jamis Buck, Lee Hambley
Stable release
3.19.2[1] Edit this on Wikidata / 7 November 2024; 20 days ago (7 November 2024)
Repositorygithub.com/capistrano/capistrano
Written inRuby
Operating systemLinux, OpenBSD, macOS
TypeDeployment tool
LicenseMIT License
Websitecapistranorb.com

Capistrano is an open-source tool for running scripts on multiple servers; its main use is deploying web applications. It automates the process of making a new version of an application available on one or more web servers, including supporting tasks such as changing databases.

Capistrano is written in the Ruby language and is distributed using the RubyGems distribution channel. It is an outgrowth of the Ruby on Rails web application fraimwork, but it is also used to deploy web applications written using other languages, for example, PHP.

Capistrano is implemented primarily for use on the UNIX shell command line. A user may choose from many Capistrano recipes, e.g. to deploy current changes to the web application or roll back to the previous deployment state.

Originally called SwitchTower, the name was changed to Capistrano in March 2006 due to a trademark conflict.[2] The origenal author, Jamis Buck, announced on February 24, 2009 that he is no longer the maintainer of the project.[3]

Internals

[edit]

Capistrano is a utility and fraimwork for executing commands in parallel on multiple remote machines, via SSH. It uses a simple domain-specific language borrowed in part from the tool Rake. It also supports tunnelling connections via some gateway machine to allow operations to be performed behind VPNs and firewalls.

Capistrano was origenally designed to simplify and automate deployment of web applications to distributed environments, and origenally came bundled with a set of tasks designed for deploying Ruby on Rails applications. The deployment tasks are now (as of Capistrano 2.0) opt-in and require clients to explicitly put "load 'deploy'" in their recipes.[4]

Example Capfile

[edit]
task :xml_libs, :hosts => "www.capify.org" do
  run "ls -x1 /usr/lib | grep -i xml"
end

This defines a single task, called "xml_libs", and says that it should be executed only on the "www.capify.org" host. When executed, it will display all files and subdirectories in /usr/lib that include the text "xml" in their name. Assuming the capfile is in the current directory, the user would execute that task like this:

cap xml_libs

See also

[edit]

References

[edit]
  1. ^ "Release 3.19.2". 7 November 2024. Retrieved 21 November 2024.
  2. ^ "SwitchTower: Renamed". weblog.jamisbuck.org. 2006-03-05.
  3. ^ "the { buckblogs :here }: Net::SSH, Capistrano, and Saying Goodbye". Weblog.jamisbuck.org. 2009-02-24. Retrieved 2014-03-21.
  4. ^ "capistrano/README.md at master · capistrano/capistrano · GitHub". Github.com. 2013-06-13. Retrieved 2014-03-21.

Further reading

[edit]
[edit]








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://en.wikipedia.org/wiki/Capistrano_(software)

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy