Skip to content
Browse files

Work, but better!

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2792 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent 1832447 commit 419794d8ba1915d63126584546dfa8c9c084f4a0 @dhh dhh committed Oct 28, 2005
Showing with 2 additions and 2 deletions.
  1. +2 −2 railties/lib/commands/lighttpd.rb
View
4 railties/lib/commands/lighttpd.rb
@@ -5,12 +5,12 @@
puts "=> Configure in config/lighttpd.conf"
detach = true
else
- puts "=> Call with -d to detach; Configure in config/lighttpd.conf"
+ puts "=> Call with -d to detach (requires absolute paths in config/lighttpd.conf)"
puts "=> Ctrl-C to shutdown server (see config/lighttpd.conf for options)"
detach = false
end
- `lighttpd -f #{File.dirname(__FILE__) + "/../"}/config/lighttpd.conf`
+ `lighttpd #{!detach ? "-D " : ""}-f #{RAILS_ROOT}/config/lighttpd.conf`
else
puts "lighttpd is not available on your system (or not in your path)"
end

0 comments on commit 419794d

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