nesquena-cap-recipes 0.3.4 → 0.3.5
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/VERSION.yml +1 -1
- data/lib/cap_recipes/tasks/passenger/install.rb +19 -7
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -15,13 +15,7 @@ Capistrano::Configuration.instance(true).load do
|
|
15
15
|
desc "Setup Passenger Module"
|
16
16
|
task :enable_apache_module, :roles => :web do
|
17
17
|
sudo "#{base_ruby_path}/bin/gem install passenger --no-ri --no-rdoc"
|
18
|
-
sudo "#{base_ruby_path}/bin/passenger-install-apache2-module"
|
19
|
-
if data =~ /Press\sEnter\sto\scontinue/ || data =~ /Press\sENTER\sto\scontinue/
|
20
|
-
ch.send_data("\n")
|
21
|
-
else
|
22
|
-
Capistrano::Configuration.default_io_proc.call(ch, stream, data)
|
23
|
-
end
|
24
|
-
end
|
18
|
+
sudo "#{base_ruby_path}/bin/passenger-install-apache2-module --auto"
|
25
19
|
end
|
26
20
|
|
27
21
|
desc "Configure Passenger"
|
@@ -45,5 +39,23 @@ Capistrano::Configuration.instance(true).load do
|
|
45
39
|
sudo "mv /tmp/passenger /etc/apache2/conf.d/passenger"
|
46
40
|
apache.restart
|
47
41
|
end
|
42
|
+
|
43
|
+
# if you want to add more options, try this, in your own conifg
|
44
|
+
# read this first... http://www.modrails.com/documentation/Users%20guide.html
|
45
|
+
# namespace :passenger do
|
46
|
+
# task :add_custom_configuration, :roles=>:web do
|
47
|
+
# #512 - 100(stack) - 4*100(instance)
|
48
|
+
# passenger_config = <<EOF
|
49
|
+
# PassengerMaxPoolSize 4
|
50
|
+
# PassengerPoolIdleTime 3000
|
51
|
+
# EOF
|
52
|
+
# put passenger_config, "/tmp/passenger"
|
53
|
+
# sudo "cat /tmp/passenger >> /etc/apache2/conf.d/passenger"
|
54
|
+
# apache.restart
|
55
|
+
# end
|
56
|
+
# end
|
57
|
+
# after "passenger:update_config", *%w(
|
58
|
+
# passenger:add_custom_configuration
|
59
|
+
# )
|
48
60
|
end
|
49
61
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nesquena-cap-recipes
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Esquenazi
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-03-
|
12
|
+
date: 2009-03-15 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|