Skip to content
Browse files

remove dbsetup for our case

  • Loading branch information...
1 parent 940cc2f commit ea5bc6687ce10e8b7d0b589286288d2d83d8301d @mykehsd committed Feb 20, 2013
Showing with 0 additions and 24 deletions.
  1. +0 −24 phpapp/recipes/appsetup.rb
View
24 phpapp/recipes/appsetup.rb
@@ -9,28 +9,4 @@
php composer.phar install
EOH
end
-
- template "#{deploy[:deploy_to]}/current/db-connect.php" do
- source "db-connect.php.erb"
- mode 0660
- group deploy[:group]
-
- if platform?("ubuntu")
- owner "www-data"
- elsif platform?("amazon")
- owner "apache"
- end
-
- variables(
- :host => (deploy[:database][:host] rescue nil),
- :user => (deploy[:database][:username] rescue nil),
- :password => (deploy[:database][:password] rescue nil),
- :db => (deploy[:database][:database] rescue nil),
- :table => (node[:phpapp][:dbtable] rescue nil)
- )
-
- only_if do
- File.directory?("#{deploy[:deploy_to]}/current")
- end
- end
end

0 comments on commit ea5bc66

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