Permalink
Browse files

Added nginx / passenger installer for a passenger version that has no…

…t yet been released. Added notes and installer.
  • Loading branch information...
benschwarz committed Apr 17, 2009
1 parent 0207055 commit db0c30072ea4564a4b3afe7360de74d10a718aa6
Showing with 22 additions and 0 deletions.
  1. +22 −0 config/stack/nginx.rb
View
@@ -0,0 +1,22 @@
+# =========
+# = Notes =
+# =========
+
+# The phusion guys have made it so that you can install nginx and passenger in one
+# fell swoop, it is for this reason and cleanlyness that I haven't decided to install
+# nginx and passenger seperatly, otherwise nginx ends up being dependent on passenger
+# so that it can call --add-module within its configure statement - That in itself would
+# be strange.
+
+package :nginx, :provides => :webserver do
+ puts "Nginx installed by passenger"
+end
+
+package :passenger, :provides => :appserver do
+ description 'Phusion Passenger (mod_rails)'
+ version '2.2.1'
+
+ gem 'passenger', :version => version do
+ post :install, "sudo passenger-install-nginx-module --auto --auto-download --prefix=/usr/local/nginx"
+ end
+end

0 comments on commit db0c300

Please sign in to comment.