mana 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -16,6 +16,8 @@ http {
16
16
  sendfile on;
17
17
  tcp_nopush on;
18
18
  tcp_nodelay on;
19
+
20
+ client_max_body_size 0;
19
21
 
20
22
  keepalive_timeout 65;
21
23
 
@@ -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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Mana
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -20,5 +20,4 @@ set :run_list, %w(
20
20
  recipe[railsapp]
21
21
  )
22
22
 
23
- after 'deploy', 'deploy:restart_unicorn'
24
- after 'deploy:restart', 'deploy:cleanup'
23
+ after 'deploy:restart', 'deploy:restart_unicorn'
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.2
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-01 00:00:00.000000000 Z
12
+ date: 2012-06-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: capistrano