Capistrano (Part 3) – Miscellenous configuration & Capistrano commands

Miscellenous configuration

  • set :user, “foo”. If you log into your server with a different user name than you are logged into your local machine with, you’ll need to tell Capistrano about that user name.
  • set :scm_username, “foo”. If you access your source repository with a different user name than you are logged into your local machine with, Capistrano needs to know. Note that not all SCM’s support the scm_username variable; you might need to embed the scm_username into the repository, e.g. “svn+ssh://#{scm_username}@foo.bar.com/path/to/repo”.
  • set :use_sudo, false. By default, Capistrano will try to use sudo to do certain operations (setting up your servers, restarting your application, etc.). If you are on a shared host, sudo might be unavailable to you, or maybe you just want to avoid using sudo.

Capistrano commands

$ cap -h -> It’ll spit out a list of all the options it accepts.
$ cap -H --> Giving it a capital H will give you a verbose
             description of what each option does.
$ cap -T --> Ask Capistrano what “tasks” it is aware of.
Advertisements

1 thought on “Capistrano (Part 3) – Miscellenous configuration & Capistrano commands”

Comments are closed.