2013-02-24 49 views

回答

0

我需要用正確的權限,首先創建的目錄:

 
directory "/u/apps" do 
    owner "vagrant" 
    group "vagrant" 
    mode "0775" 
    recursive true 
end 

web_app "myapp" do 
    docroot "/u/apps/demo/current/public" 
    template "myapp.conf.erb" 
    server_name "myproj.#{node[:domain]}" 
    server_aliases [ "myproj", node[:hostname] ] 
    rails_env "development" 
end