Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

A relative path for a static file map is interpreted relative to the …

…current/ folder.
  • Loading branch information...
commit 6dfc2d14f39fbf22e01a3877cb54f9a2d021dd18 1 parent 10e2a25
Noah Kantrowitz authored September 07, 2011

Showing 1 changed file with 6 additions and 0 deletions. Show diff stats Hide diff stats

  1. 6  providers/nginx_load_balancer.rb
6  providers/nginx_load_balancer.rb
@@ -26,6 +26,12 @@
26 26
 
27 27
   new_resource.application_server_role "#{new_resource.application.name}_application_server" unless new_resource.application_server_role
28 28
 
  29
+  static_files = new_resource.static_files.inject({}) do |files, (url, path)|
  30
+    files[url] = ::File.expand_path(path, ::File.join(new_resource.application.path, "current"))
  31
+    files
  32
+  end
  33
+  new_resource.static_files static_files
  34
+
29 35
 end
30 36
 
31 37
 action :before_deploy do

0 notes on commit 6dfc2d1

Please sign in to comment.
Something went wrong with that request. Please try again.