Browse Source

Add a root path (default to /)
This is usefull when the public html isn't in "/" but in "/public" or "/webapp" for example

Guilhem Lettron 11 years ago
parent
commit
61a56e3196
1 changed files with 1 additions and 0 deletions
  1. 1 0
      resources/default.rb

+ 1 - 0
resources/default.rb

@@ -33,6 +33,7 @@ actions :deploy, :force_deploy
 attribute :name, :kind_of => String, :name_attribute => true
 attribute :environment_name, :kind_of => String, :default => (node.chef_environment =~ /_default/ ? "production" : node.chef_environment)
 attribute :path, :kind_of => String
+attribute :root, :kind_of => String, :default => "/"
 attribute :owner, :kind_of => String
 attribute :group, :kind_of => String
 attribute :strategy, :kind_of => [String, Symbol], :default => :deploy_revision