README.md in capistrano-twingly-2.3.0 vs README.md in capistrano-twingly-2.4.0

- old
+ new

@@ -101,9 +101,24 @@ after :start, 'deploy:enable_autostart' after :restart, 'deploy:enable_autostart' end ``` +It's also possible to use a different Procfile for each host by setting `procfile_contents` to a Hash: + +```ruby +# config/deploy.rb +set :procfile_contents, -> { + servers = fetch(:servers_from_srv_record) + + servers.each_with_object({}) do |hostname, procfiles_by_host| + contents = "web: CURRENT_HOST=#{hostname} bundle exec puma" + + procfiles_by_host[hostname] = contents + end +} +``` + ### Tag deploys in Git ```Ruby # Capfile require 'capistrano/twingly/tag_deploy_in_git'