templates/nginx.conf.erb in capistrano3-nginx-2.0.0 vs templates/nginx.conf.erb in capistrano3-nginx-2.0.1
- old
+ new
@@ -28,19 +28,19 @@
<% else %>
listen 80;
<% end %>
server_name <%= fetch(:nginx_domains) %>;
- root <%= fetch(:deploy_to) %>/current/<%= fetch(:static_dir) %>;
+ root <%= fetch(:deploy_to) %>/current/<%= fetch(:nginx_static_dir) %>;
access_log <%= fetch(:nginx_log_path) %>/nginx-access.log;
error_log <%= fetch(:nginx_log_path) %>/nginx-error.log;
error_page 404 /404.html;
- location /404.html { root <%= fetch(:deploy_to) %>/current/<%= fetch(:static_dir) %>; }
+ location /404.html { root <%= fetch(:deploy_to) %>/current/<%= fetch(:nginx_static_dir) %>; }
error_page 500 /500.html;
- location /500.html { root <%= fetch (:deploy_to) %>/current/<%= fetch(:static_dir) %>; }
+ location /500.html { root <%= fetch (:deploy_to) %>/current/<%= fetch(:nginx_static_dir) %>; }
client_max_body_size 4G;
keepalive_timeout 10;
<% if fetch(:app_server) && (fetch(:app_server_socket) || fetch(:app_server_port))%>