mana 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
@@ -14,6 +14,7 @@ server {
|
|
14
14
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
15
15
|
proxy_set_header Host $http_host;
|
16
16
|
proxy_redirect off;
|
17
|
+
proxy_read_timeout <%= node[:railsapp][:request_timeout] %>s;
|
17
18
|
|
18
19
|
# If you don't find the filename in the static files
|
19
20
|
# Then request it from the unicorn server
|
@@ -50,6 +51,7 @@ server {
|
|
50
51
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
51
52
|
proxy_set_header Host $http_host;
|
52
53
|
proxy_redirect off;
|
54
|
+
proxy_read_timeout <%= node[:railsapp][:request_timeout] %>s;
|
53
55
|
|
54
56
|
# If you don't find the filename in the static files
|
55
57
|
# Then request it from the unicorn server
|
data/lib/mana/capistrano.rb
CHANGED
@@ -81,6 +81,12 @@ Capistrano::Configuration.instance(:must_exist).load do
|
|
81
81
|
sudo "#{fetch(:package_manager)} -yq update"
|
82
82
|
sudo "#{fetch(:package_manager)} -yq upgrade"
|
83
83
|
end
|
84
|
+
|
85
|
+
desc "Open SSH connection to server"
|
86
|
+
task :ssh do
|
87
|
+
host = roles[:app].servers.first # silly approach
|
88
|
+
exec "ssh -L 3737:localhost:3737 #{fetch(:user)}@#{host}" # forward monit status server port
|
89
|
+
end
|
84
90
|
end
|
85
91
|
|
86
92
|
# More convinience
|
data/lib/mana/version.rb
CHANGED
data/templates/config/deploy.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mana
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-06-
|
12
|
+
date: 2012-06-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|