aboutsummaryrefslogtreecommitdiffstats
path: root/railties/bin
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2005-10-28 17:54:07 +0000
committerDavid Heinemeier Hansson <david@loudthinking.com>2005-10-28 17:54:07 +0000
commit9ad0f0898588841ea48744996acbe38ce3ec45e0 (patch)
tree965d6ba4d0eab8820f3a8790b402159789cd610c /railties/bin
parent5f73ba11ceba20408facbd3240bea19682cd09e1 (diff)
downloadrails-9ad0f0898588841ea48744996acbe38ce3ec45e0.tar.gz
rails-9ad0f0898588841ea48744996acbe38ce3ec45e0.tar.bz2
rails-9ad0f0898588841ea48744996acbe38ce3ec45e0.zip
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
Diffstat (limited to 'railties/bin')
-rw-r--r--railties/bin/lighttpd10
1 files changed, 10 insertions, 0 deletions
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