diff options
author | Nicholas Seckar <nseckar@gmail.com> | 2006-02-26 17:49:09 +0000 |
---|---|---|
committer | Nicholas Seckar <nseckar@gmail.com> | 2006-02-26 17:49:09 +0000 |
commit | 26eaf073c4de8276663f927fdeeb91453e8b3956 (patch) | |
tree | 1690bbb49d971b063e240d155d58c503de938ee5 /railties/lib/commands | |
parent | d11f8d551640c94e22c221c3bee39ab572b1dc72 (diff) | |
download | rails-26eaf073c4de8276663f927fdeeb91453e8b3956.tar.gz rails-26eaf073c4de8276663f927fdeeb91453e8b3956.tar.bz2 rails-26eaf073c4de8276663f927fdeeb91453e8b3956.zip |
Remove ::Controllers related cruft; fix AP tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3668 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'railties/lib/commands')
-rw-r--r-- | railties/lib/commands/servers/lighttpd.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/railties/lib/commands/servers/lighttpd.rb b/railties/lib/commands/servers/lighttpd.rb index 4c226c2700..2bd9a1de14 100644 --- a/railties/lib/commands/servers/lighttpd.rb +++ b/railties/lib/commands/servers/lighttpd.rb @@ -30,7 +30,9 @@ unless File.exist?(config_file) source = File.expand_path(File.join(File.dirname(__FILE__), "..", "..", "..", "configs", "lighttpd.conf")) puts "=> #{config_file} not found, copying from #{source}" - FileUtils.cp source, config_file + config = File.read source + config = config.gsub "CWD", File.expand_path(RAILS_ROOT).inspect + File.open(config_file, 'w') { |f| f.write config } end config = IO.read(config_file) |