README.md in capistrano-o2web-recipes-0.0.7 vs README.md in capistrano-o2web-recipes-0.1.0

- old
+ new

@@ -40,29 +40,34 @@ cap [stage] db:server_to_local # Sync local DB with server DB cap [stage] db:local_to_server # Sync server DB with local DB cap [stage] nginx:local_to_server # Export nginx configuration files ``` -Also, tasks from 'capistrano3-nginx' are available. +Also, `deploy:assets:precompile` task is done locally and a `cron.log` file is created/touched in `shared/log` after deploy. Configurations can be customized in your deploy file with: ```ruby set :server, 'example.com' set :deployer_name, 'deployer' -# default to %W[system] -set :files_public_dirs, fetch(:files_public_dirs, []).push(*%W[ +# default to ['system'] +set :files_public_dirs, fetch(:files_public_dirs).push(*%W[ spree ]) # default to [] -set :files_private_dirs, fetch(:files_private_dirs, []).push(*%W[ +set :files_private_dirs, fetch(:files_private_dirs).push(*%W[ ]) -set :nginx_workers, 1 -# default to %W[assets system] -set :nginx_assets_dirs, fetch(:nginx_assets_dirs, []).push(*%W[ +set :nginx_max_body_size, '10m' +# default to ['system', 'images'] +set :nginx_assets_dirs, fetch(:nginx_assets_dirs).push(*%W[ spree ]) -set :nginx_max_body_size, '10m' +# default to ['404.html', '422.html', '500.html', 'favicon.ico'] +set :nginx_assets_files, fetch(:nginx_assets_files).push(*%W[ +]) +# default to {} +set :nginx_redirects, fetch(:nginx_redirects).merge({ +}) ``` ### TODO 1. Use stages (staging/production) to scope Nginx config file to allow multiple stages on the same server.