suitmymind-ubuntu-machine 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README +5 -2
- data/lib/capistrano/ext/ubuntu-machine/ruby.rb +6 -22
- metadata +2 -2
data/README
CHANGED
@@ -12,9 +12,10 @@ namespace :ruby do
|
|
12
12
|
desc "Install Ruby Enterpise Edition"
|
13
13
|
task :install_enterprise, :roles => :app do
|
14
14
|
sudo "apt-get install libssl-dev -y"
|
15
|
+
sudo "apt-get install libreadline5-dev -y"
|
15
16
|
|
16
17
|
run "test ! -d /opt/#{ruby_enterprise_version}"
|
17
|
-
run "curl -LO http://rubyforge.org/frs/download.php/
|
18
|
+
run "curl -LO http://rubyforge.org/frs/download.php/50087/#{ruby_enterprise_version}.tar.gz"
|
18
19
|
run "tar xzvf #{ruby_enterprise_version}.tar.gz"
|
19
20
|
run "rm #{ruby_enterprise_version}.tar.gz"
|
20
21
|
sudo "./#{ruby_enterprise_version}/installer --auto /opt/#{ruby_enterprise_version}"
|
@@ -22,28 +23,11 @@ namespace :ruby do
|
|
22
23
|
|
23
24
|
# create a "permanent" link to the current REE install
|
24
25
|
sudo "ln -s /opt/#{ruby_enterprise_version} /opt/ruby-enterprise"
|
25
|
-
end
|
26
|
-
|
27
|
-
desc "USELESS Install Phusion Passenger"
|
28
|
-
task :useless_install_passenger, :roles => :app do
|
29
|
-
# because passenger-install-apache2-module do not find the rake installed by REE
|
30
|
-
sudo "gem install rake"
|
31
26
|
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
sudo "/usr/bin/gem install passenger"
|
37
|
-
run "echo -en '\n\n\n\n\n' | sudo passenger-install-apache2-module"
|
38
|
-
|
39
|
-
put render("passenger.load", binding), "/home/#{user}/passenger.load"
|
40
|
-
put render("passenger.conf", binding), "/home/#{user}/passenger.conf"
|
41
|
-
|
42
|
-
sudo "mv /home/#{user}/passenger.load /etc/apache2/mods-available/"
|
43
|
-
sudo "mv /home/#{user}/passenger.conf /etc/apache2/mods-available/"
|
44
|
-
|
45
|
-
sudo "a2enmod passenger"
|
46
|
-
apache.force_reload
|
27
|
+
# add REE bin to the path
|
28
|
+
run "cat /etc/environment > ~/environment.tmp"
|
29
|
+
run 'echo PATH="/opt/ruby-enterprise/bin:$PATH" >> ~/environment.tmp'
|
30
|
+
sudo 'mv ~/environment.tmp /etc/environment'
|
47
31
|
end
|
48
32
|
|
49
33
|
desc "Install Phusion Passenger"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: suitmymind-ubuntu-machine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Thomas Balthazar
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-01-
|
12
|
+
date: 2009-01-18 00:00:00 -08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|