-
Notifications
You must be signed in to change notification settings - Fork 66
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated Ruby Enterprise to the latest version. Reorganised ruby enter…
…prise install so that it belongs in /usr/local/ruby-enterprise and symlinks binaries from /usr/local/bin. Removed plain old Ruby (no longer required). Updated README to match commit and updated credits
- Loading branch information
1 parent
9b69f34
commit 2f9d7bd
Showing
8 changed files
with
24 additions
and
75 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ | |
description 'Ruby MySQL database driver' | ||
gem 'mysql' | ||
|
||
requires :ruby | ||
requires :ruby_enterprise | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ | |
description 'Ruby PostgreSQL database driver' | ||
gem 'postgres' | ||
|
||
requires :ruby | ||
requires :ruby_enterprise | ||
end |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,44 +1,25 @@ | ||
package :ruby_enterprise do | ||
description 'Ruby Enterprise Edition' | ||
version '1.8.6-20081215' | ||
source "http://rubyforge.org/frs/download.php/48623/ruby-enterprise-#{version}.tar.gz" do | ||
custom_install 'echo -en "\n\n\n\n" | sudo ./installer' | ||
|
||
# Modify the passenger conf file to point to REE | ||
post :install, 'sed -i "s|^PassengerRuby [/a-zA-Z0-9.]*$|PassengerRuby /opt/ruby-enterprise-1.8.6-20081215/bin/ruby|" /etc/apache2/extras/passenger.conf' | ||
version '1.8.6-20090113' | ||
|
||
# Restart apache | ||
post :install, '/etc/init.d/apache2 restart' | ||
|
||
# Remove standard ruby binaries | ||
post :install, 'rm /usr/local/bin/ruby' | ||
post :install, 'rm /usr/local/bin/gem' | ||
post :install, 'rm /usr/local/bin/rake' | ||
|
||
# Symlink ruby enterprise binaries | ||
%w(ruby gem rake rails).each do |bin| | ||
post :install, "ln -s /opt/ruby-enterprise-#{version}/bin/#{bin} /usr/local/bin/" | ||
end | ||
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/50087/ruby-enterprise-#{version}.tar.gz" do | ||
custom_install 'echo -en "\n/usr/local/ruby-enterprise\n" | sudo ./installer' | ||
|
||
# Symlink for other binaries | ||
#post :install "sudo ln -s /opt/ruby-enterprise-#{version}/bin/ /usr/local/bin/RE-binaries" | ||
binaries.each {|bin| post :install, "ln -s #{install_path}/bin/#{bin} /usr/local/bin/#{bin}" } | ||
end | ||
|
||
verify do | ||
has_directory "/opt/ruby-enterprise-#{version}" | ||
has_executable "/opt/ruby-enterprise-#{version}/bin/ruby" | ||
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 :apache | ||
requires :passenger | ||
requires :zlib | ||
requires :openssl | ||
end | ||
|
||
package :zlib do | ||
apt "zlib1g-dev" | ||
requires :build_essential, :apache, :ree_dependencies | ||
end | ||
|
||
package :openssl do | ||
apt "libssl-dev" | ||
package :ree_dependencies do | ||
apt %w(zlib1g-dev libreadline5-dev libssl-dev) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters