Permalink
Browse files

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

…current/ folder.
  • Loading branch information...
1 parent 10e2a25 commit 6dfc2d14f39fbf22e01a3877cb54f9a2d021dd18 @coderanger coderanger committed Sep 7, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 providers/nginx_load_balancer.rb
View
6 providers/nginx_load_balancer.rb
@@ -26,6 +26,12 @@
new_resource.application_server_role "#{new_resource.application.name}_application_server" unless new_resource.application_server_role
+ static_files = new_resource.static_files.inject({}) do |files, (url, path)|
+ files[url] = ::File.expand_path(path, ::File.join(new_resource.application.path, "current"))
+ files
+ end
+ new_resource.static_files static_files
+
end
action :before_deploy do

0 comments on commit 6dfc2d1

Please sign in to comment.