nesquena-cap-recipes 0.2.12 → 0.2.13
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.textile +1 -0
- data/VERSION.yml +1 -1
- data/lib/cap_recipes/tasks/passenger.rb +3 -2
- metadata +1 -1
data/README.textile
CHANGED
@@ -38,6 +38,7 @@ h3. Passenger
|
|
38
38
|
h4. Configuration
|
39
39
|
|
40
40
|
* base_ruby_path - the base path to the ruby installation [default: "/usr"]
|
41
|
+
* local_ping_path - the localhost path to ping to start passenger [default: "http://localhost"]
|
41
42
|
|
42
43
|
The following files and folders are expected to exist:
|
43
44
|
|
data/VERSION.yml
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
require 'cap_recipes/tasks/with_scope.rb'
|
2
2
|
|
3
3
|
Capistrano::Configuration.instance(true).load do
|
4
|
-
set :base_ruby_path, '/usr'
|
4
|
+
set :base_ruby_path, '/usr'
|
5
|
+
set :local_ping_path, 'http://localhost'
|
5
6
|
|
6
7
|
# ===============================================================
|
7
8
|
# DEPLOYMENT SCRIPTS
|
@@ -74,7 +75,7 @@ Capistrano::Configuration.instance(true).load do
|
|
74
75
|
desc "Pings the root localhost to startup passenger"
|
75
76
|
task :ping, :roles => :web do
|
76
77
|
puts "Pinging the web server to start passenger"
|
77
|
-
run "wget -O /dev/null
|
78
|
+
run "wget -O /dev/null #{local_ping_path}"
|
78
79
|
end
|
79
80
|
end
|
80
81
|
|