blob: 1b3212347b893b5138cfa4aa4b0fa9fd94625423 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
if RUBY_PLATFORM !~ /mswin/ && `lighttpd -version 2>/dev/null`.size > 0
puts "=> Rails application started on http://0.0.0.0:3000"
if ARGV.first == "-d"
puts "=> Configure in config/lighttpd.conf"
detach = true
else
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 #{!detach ? "-D " : ""}-f #{RAILS_ROOT}/config/lighttpd.conf`
else
puts "lighttpd is not available on your system (or not in your path)"
end
|