From a61c1825ab84bcef34e9bba0f21b2b4c650373bb Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Fri, 12 May 2006 04:06:41 +0000 Subject: The app generator detects the XAMPP package's MySQL socket location. Closes #3832. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4336 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/CHANGELOG | 2 ++ .../lib/rails_generator/generators/applications/app/app_generator.rb | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/railties/CHANGELOG b/railties/CHANGELOG index c79e1dcc97..0022be6b60 100644 --- a/railties/CHANGELOG +++ b/railties/CHANGELOG @@ -1,5 +1,7 @@ *SVN* +* The app generator detects the XAMPP package's MySQL socket location. #3832 [elliot@townx.org] + * The app generator sets a session key in application.rb so apps running on the same host may distinguish their cookies. #2967 [rcoder, rails-bug@owl.me.uk] * Distinguish the spawners for different processes [DHH] diff --git a/railties/lib/rails_generator/generators/applications/app/app_generator.rb b/railties/lib/rails_generator/generators/applications/app/app_generator.rb index 44386f7ac2..6d58b98fbe 100644 --- a/railties/lib/rails_generator/generators/applications/app/app_generator.rb +++ b/railties/lib/rails_generator/generators/applications/app/app_generator.rb @@ -154,6 +154,7 @@ class AppGenerator < Rails::Generator::Base "/opt/local/lib/mysql/mysql.sock", # fedora "/opt/local/var/run/mysqld/mysqld.sock", # mac + darwinports + mysql "/opt/local/var/run/mysql4/mysqld.sock", # mac + darwinports + mysql4 - "/opt/local/var/run/mysql5/mysqld.sock" # mac + darwinports + mysql5 + "/opt/local/var/run/mysql5/mysqld.sock", # mac + darwinports + mysql5 + "/opt/lampp/var/mysql/mysql.sock" # xampp for linux ] end -- cgit v1.2.3