capistrano-generals 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f5418b28596059744e60166faab083f45b39828e
4
- data.tar.gz: 49c000fb03544f8325070d163eaca75d88984ceb
3
+ metadata.gz: f5cfafd2788270fa55b0f631c3a66da6621bdc50
4
+ data.tar.gz: 4a866226d9a0000ac70b7a2010276478059387d9
5
5
  SHA512:
6
- metadata.gz: 00c32a08f14ce4ebe36223a772a98b4499fdf0bd818f22f86bb952c29c2b98e8df9d1cf1ce7441ea2ba8d337d8034c0d5154630fad8b621cb47bb6764242829c
7
- data.tar.gz: 8d302884b0af0afc0917c34aef4cdba241e55a2ec893ff5ba95d047f681d0c6e8960f9abe74aa63c882b204c7527c732303fc617b3a5c9c10560fa83f54f2c99
6
+ metadata.gz: fdd94fba01c7372f6037742824a9daa6e86d2f819b05a4f7a5055e25164a56637d431aece1913f04a76a1cfb0e21ebbe418abca7f77e74549fdf302e4b84d965
7
+ data.tar.gz: fdd93d1e0f96671ae8911d8a88fb47e2a46b4955f93a8c98c55816a3c25b215124f4deaf12fc1281f9ed4694ae150a08388450bcfa5a3d03dd067aa286729589
@@ -17,6 +17,18 @@ module Capistrano
17
17
  def puma_default_pid_file
18
18
  shared_path.join('tmp/pids/puma.pid')
19
19
  end
20
+
21
+ def puma_log_dir
22
+ shared_path.join('log')
23
+ end
24
+
25
+ def puma_log_file
26
+ puma_log_dir.join(fetch(:puma_log))
27
+ end
28
+
29
+ def puma_error_log_file
30
+ puma_log_dir.join(fetch(:puma_error_log))
31
+ end
20
32
  end
21
33
  end
22
34
  end
@@ -1,5 +1,5 @@
1
1
  module Capistrano
2
2
  module Generals
3
- VERSION = "0.1.4"
3
+ VERSION = "0.1.5"
4
4
  end
5
5
  end
@@ -50,6 +50,8 @@ namespace :load do
50
50
  set :puma_preload_app, true
51
51
  set :puma_pid, -> { puma_default_pid_file } # shared_path/tmp/pids/puma.pid
52
52
  set :puma_config, -> { puma_default_config_file } # shared_path/config/puma.rb
53
+ set :puma_log, 'puma.log'
54
+ set :puma_error_log, 'puma.log'
53
55
  set :puma_workers, 2
54
56
  set :puma_worker_timeout, 30
55
57
  set :puma_min_threads, 0
@@ -10,6 +10,7 @@ pidfile "<%= fetch(:puma_pid) %>"
10
10
  preload_app!
11
11
  <% end %>
12
12
 
13
+ stdout_redirect "<%= puma_log_file %>", "<%= puma_error_log_file %>", true
13
14
  worker_timeout <%= fetch(:puma_worker_timeout) %>
14
15
 
15
16
  on_worker_boot do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capistrano-generals
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stef Schenkelaars
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-12 00:00:00.000000000 Z
11
+ date: 2015-07-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capistrano