To create local logrotate configuration file call rails generate kapify:logrotate [path] The default path is "config/deploy/templates". You can override it like so: rails generate kapify:logrotate "config/templates" If you override templates path, don't forget to set "templates_path" variable in your deploy.rb