diff options
Diffstat (limited to 'railties/lib')
-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) |