mina-rails-tools 0.2.0 → 0.2.1

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: 557849364ded29fbbf2daec36623167cf3e60b5e
4
- data.tar.gz: 697ea46e24df21c081c95c38d825455cf8795df1
3
+ metadata.gz: 42ce4596e928ab543ea45cbf4d474bb240cd31d1
4
+ data.tar.gz: 21f0bce5b2b15e31ea7b168e12d418ffa3b89f4f
5
5
  SHA512:
6
- metadata.gz: 1020ad59edd4551e19b129a503109dfc4ea593a53bd2421e33f50f831a056ce67e706a6e71ecfff2f03c9ec4318afaf5782681b5ccd01ea2670c56259079ab88
7
- data.tar.gz: 5566e87139272c5a402effa3a738efdae5f31be6fc90b3b08ae71913e4522ebc614883430b7a5ea6b477db52f4f18ce910463372b5ac49c8dac96c6853ecbbf5
6
+ metadata.gz: 20b43ea9449a2f9fc45bbb663e18ca6a6c0938498694aebf597b453fe84f8686b64430a85dc1496b4739406210f9851a4e944e7c9037bc51361782a47eb49e22
7
+ data.tar.gz: c16949e2c3a8f012b6273037443c4906e23cdbf8dc812026554e51f43bd4405a95a83c3c3adc04dbf13e1c1de8a3bfcc03181535bde56f1163e7acc60fdd1ce8
@@ -26,11 +26,11 @@ namespace :rainbows do
26
26
  end
27
27
 
28
28
  task :log do
29
- command %{tail -f "#{fetch(:deploy_to)!}/#{shared_path}/log/rainbows.log" -n 200}
29
+ command %{tail -f "#{fetch(:deploy_to)}/#{shared_path}/log/rainbows.log" -n 200}
30
30
  end
31
31
 
32
32
  task :err_log do
33
- command %{tail -f "#{fetch(:deploy_to)!}/#{shared_path}/log/rainbows.error.log" -n 200}
33
+ command %{tail -f "#{fetch(:deploy_to)}/#{shared_path}/log/rainbows.error.log" -n 200}
34
34
  end
35
35
 
36
36
  desc "Rainbows: Link script files"
@@ -1,12 +1,12 @@
1
1
  # http://unicorn.bogomips.org/SIGNALS.html
2
2
 
3
3
  rails_env = "production"
4
- rails_root = "<%= "#{fetch(:deploy_to)!}/#{current_path!}" %>"
5
- shared_root = "<%= "#{fetch(:deploy_to)!}/#{shared_path!}" %>"
4
+ rails_root = "<%= "#{fetch(:deploy_to)}/#{current_path!}" %>"
5
+ shared_root = "<%= "#{fetch(:deploy_to)}/#{shared_path!}" %>"
6
6
  config = "#{shared_root}/unicorn.rb"
7
- unicorn_pid = "<%= "#{fetch(:deploy_to)!}/#{shared_path!}/pids/unicorn.pid" %>"
7
+ unicorn_pid = "<%= "#{fetch(:deploy_to)}/#{shared_path!}/pids/unicorn.pid" %>"
8
8
 
9
- # God.pid_file_directory = File.join("<%= fetch(:deploy_to)! %>", "shared", "pids")
9
+ # God.pid_file_directory = File.join("<%= fetch(:deploy_to) %>", "shared", "pids")
10
10
  God.watch do |w|
11
11
  w.name = "unicorn_<%= "#{fetch(:app)}" %>"
12
12
  w.interval = 30.seconds # default
@@ -1,9 +1,9 @@
1
- rails_root = "<%= "#{fetch(:deploy_to)!}/#{current_path!}" %>"
1
+ rails_root = "<%= "#{fetch(:deploy_to)}/#{current_path!}" %>"
2
2
  rails_env = "<%= rails_env || "production" %>"
3
- pid_file = "<%= "#{fetch(:deploy_to)!}/#{shared_path}" %>/pids/unicorn.pid"
3
+ pid_file = "<%= "#{fetch(:deploy_to)}/#{shared_path}" %>/pids/unicorn.pid"
4
4
  socket_file= "/tmp/unicorn.<%= fetch(:app) %>.socket"
5
- log_file = "<%= "#{fetch(:deploy_to)!}/#{shared_path}" %>/log/unicorn.log"
6
- err_log = "<%= "#{fetch(:deploy_to)!}/#{shared_path}" %>/log/unicorn.error.log"
5
+ log_file = "<%= "#{fetch(:deploy_to)}/#{shared_path}" %>/log/unicorn.log"
6
+ err_log = "<%= "#{fetch(:deploy_to)}/#{shared_path}" %>/log/unicorn.error.log"
7
7
  old_pid = pid_file + '.oldbin'
8
8
 
9
9
  timeout 60
@@ -3,8 +3,8 @@ set -e
3
3
 
4
4
  AS_USER=deploy
5
5
  TIMEOUT=60
6
- APP_ROOT="<%= "#{fetch(:deploy_to)!}" %>"
7
- PID_PATH="<%= "#{fetch(:deploy_to)!}/#{shared_path!}/pids" %>"
6
+ APP_ROOT="<%= "#{fetch(:deploy_to)}" %>"
7
+ PID_PATH="<%= "#{fetch(:deploy_to)}/#{shared_path!}/pids" %>"
8
8
  PID="$PID_PATH/unicorn.pid"
9
9
  ENVIRONMENT="<%= rails_env || "production" %>"
10
10
  CONFIG="$APP_ROOT/<%= "#{shared_path!}/unicorn.rb" %>"
@@ -48,11 +48,11 @@ namespace :unicorn do
48
48
  end
49
49
 
50
50
  task :log do
51
- command %{tail -f "#{fetch(:deploy_to)!}/#{shared_path}/log/unicorn.log" -n 200}
51
+ command %{tail -f "#{fetch(:deploy_to)}/#{shared_path}/log/unicorn.log" -n 200}
52
52
  end
53
53
 
54
54
  task :err_log do
55
- command %{tail -f "#{fetch(:deploy_to)!}/#{shared_path}/log/unicorn.error.log" -n 200}
55
+ command %{tail -f "#{fetch(:deploy_to)}/#{shared_path}/log/unicorn.error.log" -n 200}
56
56
  end
57
57
 
58
58
  desc "Unicorn: Link script files"
@@ -1,5 +1,5 @@
1
1
  module Mina
2
2
  module Extras
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mina-rails-tools
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joey Lin