```ruby
# config valid only for current version of Capistrano
lock '~> 3.14.1'

set :application, 'screaming_dinosaur'
set :repo_url, 'https://github.com/umts/screaming-dinosaur.git'
set :branch, :master
set :deploy_to, "/srv/#{fetch :application}"

set :log_level, :info

set :whenever_command, [:sudo, :bundle, :exec, :whenever]

append :linked_files,
  'config/database.yml',
  'config/application.yml'

append :linked_dirs, '.bundle', 'log'
```

Use sudo to restart passenger
user
```ruby
# config valid only for current version of Capistrano
lock '~> 3.14.1'

set :application, 'screaming_dinosaur'
set :repo_url, 'https://github.com/umts/screaming-dinosaur.git'
set :branch, :master
set :deploy_to, "/srv/#{fetch :application}"

set :log_level, :info

set :whenever_command, [:sudo, :bundle, :exec, :whenever]

append :linked_files,
  'config/database.yml',
  'config/application.yml'

append :linked_dirs, '.bundle', 'log'

set :passenger_restart_with_sudo, true
```
assistant