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

Add password authentication tip to README.md

This commit is contained in:
Diego 2014-04-14 11:27:27 -03:00
parent e29ee7a063
commit 199b69391f

View file

@ -152,6 +152,15 @@ end
Perfect, who needs telephones.
## Using password authentication
Password authentication can be done via `set` and `ask` in your deploy environment file (e.g.: config/environments/production.rb)
```ruby
set :password, ask('Server password:', nil)
server 'server.domain.com', user: 'ssh_user_name', port: 22, password: fetch(:password), roles: %w{web app db}
```
## Running local tasks
Local tasks can be run by replacing `on` with `run_locally`