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:
parent
e29ee7a063
commit
199b69391f
1 changed files with 9 additions and 0 deletions
|
@ -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`
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue