Skip to content

Commit

Permalink
nginx default sites disabled | fixes #2
Browse files Browse the repository at this point in the history
  • Loading branch information
maukoquiroga committed Oct 5, 2012
1 parent e98578a commit 9e1d479
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 6 deletions.
3 changes: 2 additions & 1 deletion .gitignore
Expand Up @@ -5,4 +5,5 @@
/nodes/*.rb /nodes/*.rb
/roles/*.json /roles/*.json
/roles/*.rb /roles/*.rb
/tmp/* /tmp/*
/.vagrant
1 change: 0 additions & 1 deletion .vagrant

This file was deleted.

11 changes: 11 additions & 0 deletions site-cookbooks/chef-rails/recipes/default.rb
Expand Up @@ -2,6 +2,17 @@
package pkg package pkg
end end


bash "remove default nginx sites" do
code %{
sudo rm -f /etc/nginx/sites-available/default
sudo rm -f /etc/nginx/sites-enabled/default
}
end

bash "install or update bundle" do bash "install or update bundle" do
code "sudo gem install bundle --no-ri --no-rdoc" code "sudo gem install bundle --no-ri --no-rdoc"
end end

bash "change owner and group of chef-solo tmp files" do
code "sudo chown -R #{node[:authorization][:sudo][:users].first}:#{node[:authorization][:sudo][:groups].first} /tmp/chef-solo"
end
4 changes: 0 additions & 4 deletions site-cookbooks/nginx/recipes/default.rb
Expand Up @@ -65,10 +65,6 @@
# mode "0644" # mode "0644"
# end # end


file "#{node[:nginx][:dir]}/sites-available/default" do
action :delete
end

directory node[:nginx][:proxy_cache_dir] do directory node[:nginx][:proxy_cache_dir] do
owner node[:nginx][:user] owner node[:nginx][:user]
group node[:nginx][:user] group node[:nginx][:user]
Expand Down

0 comments on commit 9e1d479

Please sign in to comment.