-
Notifications
You must be signed in to change notification settings - Fork 81
Template customization
bruno- edited this page Jan 1, 2015
·
2 revisions
One of the main tasks of this plugin is to provide nginx
and unicorn
config files. These files are derived from templates.
If you want to inspect or change default templates, you can generate them using the rails generator
:
$ bundle exec rails g capistrano:unicorn_nginx:config
This will copy default templates to config/deploy/templates
directory, so you
can customize them as you like. Capistrano tasks will use these templates instead of the default ones.
You can also provide path where to generate templates:
$ bundle exec rails g capistrano:unicorn_nginx:config config/templates
After you have generated templates, they will be used in the setup
task instead of the defaults that come with this plugin.
To use the defaults again, just delete the generated templates.