Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Overhaul the install.rb file to be a little more succinct due to the …

…inclusion of the nginx web server. Added notes to explain installation of each web server. Updated dependency for sprinkle 0.2.3.
  • Loading branch information...
commit cbc3554212e872d2509b57aaf28d4ed4533d56d5 1 parent db0c300
@benschwarz authored
Showing with 22 additions and 15 deletions.
  1. +22 −15 config/install.rb
View
37 config/install.rb
@@ -1,22 +1,29 @@
-# Require our stack
-%w(essential apache scm ruby_enterprise memcached postgresql mysql).each do |r|
- require File.join(File.dirname(__FILE__), 'stack', r)
-end
+$:<< File.join(File.dirname(__FILE__), 'stack')
+
+# ===============
+# = Web servers =
+# ===============
+
+# Apache and Nginx are interchangable simply by choosing which file should be included to the stack
+
+# Apache has some extra installers for etags, gzip/deflate compression and expires headers.
+# These are enabled by default when you choose Apache, you can remove these dependencies within
+# stack/apache.rb
+
+require 'apache'
+# require 'nginx'
+
+# Require the rest of our stack
+%w(essential scm ruby_enterprise memcached postgresql mysql).each(&method(:require))
# What we're installing to your server
# Take what you want, leave what you don't
# Build up your own and strip down your server until you get it right.
-policy :passenger_stack, :roles => :app do
- requires :webserver # Apache
-
- requires :apache_etag_support # == Apache extras
- requires :apache_deflate_support # Read about these specialties in
- requires :apache_expires_support # stack/apache.rb
-
+policy :stack, :roles => :app do
+ requires :webserver # Apache or Nginx
requires :appserver # Passenger
requires :ruby_enterprise # Ruby Enterprise edition
- requires :database # MySQL or Postgres
- requires :ruby_database_driver # mysql or postgres gems
+ requires :database # MySQL or Postgres, also installs rubygems for each
requires :scm # Git
requires :memcached # Memcached
requires :libmemcached # Libmemcached
@@ -42,8 +49,8 @@
# Depend on a specific version of sprinkle
begin
- gem 'sprinkle', ">= 0.2.1"
+ gem 'sprinkle', ">= 0.2.3"
rescue Gem::LoadError
- puts "sprinkle 0.2.1 required.\n Run: `sudo gem install sprinkle`"
+ puts "sprinkle 0.2.3 required.\n Run: `sudo gem install sprinkle`"
exit
end
Please sign in to comment.
Something went wrong with that request. Please try again.