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