require 'yaml' def local_conf conf = YAML.load_file('path_to_settings.local.yml') conf['puma'] end directory 'path_to_app_directory' workers local_conf['workers'] threads_count = local_conf['threads'] threads threads_count, threads_count phased_restart = local_conf['phased_restart'] preload_app! unless phased_restart prune_bundler if phased_restart rackup DefaultRackup port 3000 worker_timeout loc