Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Customizing my stack

  • Loading branch information...
commit 3400ba5a1b6383c0dcea9f87e2cde8c42b7dcecf 1 parent 7172ad2
@lucashungaro authored
View
12 config/install.rb
@@ -1,16 +1,16 @@
# Require our stack
-%w(essential apache scm ruby_enterprise memcached postgresql mysql).each do |r|
+%w(essential apache scm ruby_enterprise memcached mysql).each do |r|
require File.join(File.dirname(__FILE__), 'stack', r)
end
# 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.
+# 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_deflate_support # Read about these specialties in
requires :apache_expires_support # stack/apache.rb
requires :appserver # Passenger
@@ -31,7 +31,7 @@
recipes 'deploy'
end
end
-
+
# source based package installer defaults
source do
prefix '/usr/local'
@@ -40,9 +40,9 @@
end
end
-# Depend on a specific version of sprinkle
+# Depend on a specific version of sprinkle
begin
- gem 'sprinkle', ">= 0.2.1"
+ gem 'sprinkle', ">= 0.2.1"
rescue Gem::LoadError
puts "sprinkle 0.2.1 required.\n Run: `sudo gem install sprinkle`"
exit
View
2  config/stack/apache.rb
@@ -18,7 +18,7 @@
package :passenger, :provides => :appserver do
description 'Phusion Passenger (mod_rails)'
- version '2.2.2'
+ version '2.2.4'
gem 'passenger' do
post :install, 'echo -en "\n\n\n\n" | sudo passenger-install-apache2-module'
View
6 config/stack/memcached.rb
@@ -1,16 +1,16 @@
package :memcached_daemon, :provides => :memcached do
description 'Memcached, a distributed memory object store'
apt %w( memcached )
-
+
post :install, "/etc/init.d/memcached start"
post :install, "sudo ldconfig"
-
+
verify do
has_executable 'memcached'
end
end
package :libmemcached do
- source 'http://download.tangent.org/libmemcached-0.25.tar.gz'
+ source 'http://download.tangent.org/libmemcached-0.31.tar.gz'
requires :memcached_daemon
end
View
12 config/stack/ruby_enterprise.rb
@@ -1,24 +1,24 @@
package :ruby_enterprise do
description 'Ruby Enterprise Edition'
- version '1.8.6-20090421'
-
+ version '1.8.6-20090610'
+
install_path = "/usr/local/ruby-enterprise"
binaries = %w(erb gem irb passenger-config passenger-install-apache2-module passenger-make-enterprisey passenger-memory-stats passenger-spawn-server passenger-status passenger-stress-test rackup rails rake rdoc ree-version ri ruby testrb)
source "http://rubyforge.org/frs/download.php/55511/ruby-enterprise-#{version}.tar.gz" do
custom_install 'sudo ./installer --auto=/usr/local/ruby-enterprise'
-
+
binaries.each {|bin| post :install, "ln -s #{install_path}/bin/#{bin} /usr/local/bin/#{bin}" }
end
-
+
verify do
has_directory install_path
has_executable "#{install_path}/bin/ruby"
binaries.each {|bin| has_symlink "/usr/local/bin/#{bin}", "#{install_path}/bin/#{bin}" }
end
-
+
requires :ree_dependencies
end
-package :ree_dependencies do
+package :ree_dependencies do
apt %w(zlib1g-dev libreadline5-dev libssl-dev)
end
View
4 config/stack/scm.rb
@@ -1,9 +1,9 @@
package :git, :provides => :scm do
description 'Git Distributed Version Control'
- version '1.6.1'
+ version '1.6.4'
source "http://kernel.org/pub/software/scm/git/git-#{version}.tar.gz"
requires :git_dependencies
-
+
verify do
has_file '/usr/local/bin/git'
end
Please sign in to comment.
Something went wrong with that request. Please try again.