From 9ad0f0898588841ea48744996acbe38ce3ec45e0 Mon Sep 17 00:00:00 2001 From: David Heinemeier Hansson Date: Fri, 28 Oct 2005 17:54:07 +0000 Subject: Added default lighttpd config in config/lighttpd.conf and added a default runner for lighttpd in script/lighttpd (works like script/server, but using lighttpd and FastCGI) [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@2787 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- railties/bin/lighttpd | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 railties/bin/lighttpd (limited to 'railties/bin') diff --git a/railties/bin/lighttpd b/railties/bin/lighttpd new file mode 100644 index 0000000000..0820ff5903 --- /dev/null +++ b/railties/bin/lighttpd @@ -0,0 +1,10 @@ +#!/usr/local/bin/ruby + +if RUBY_PLATFORM !~ /mswin/ && `lighttpd -version 2>/dev/null`.size > 0 + puts "=> Rails application started on http://0.0.0.0:3000" + puts "=> Ctrl-C to shutdown server" + + `lighttpd -D -f #{File.dirname(__FILE__) + "/../"}/config/lighttpd.conf` +else + puts "lighttpd is not available on your system" +end \ No newline at end of file -- cgit v1.2.3