mina-rails-tools 0.2.0 → 0.2.1
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.
- checksums.yaml +4 -4
- data/lib/mina/extras/rainbows.rb +2 -2
- data/lib/mina/extras/templates/unicorn.god.erb +4 -4
- data/lib/mina/extras/templates/unicorn.rb.erb +4 -4
- data/lib/mina/extras/templates/unicorn_init.sh.erb +2 -2
- data/lib/mina/extras/unicorn.rb +2 -2
- data/lib/mina/extras/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 42ce4596e928ab543ea45cbf4d474bb240cd31d1
|
4
|
+
data.tar.gz: 21f0bce5b2b15e31ea7b168e12d418ffa3b89f4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 20b43ea9449a2f9fc45bbb663e18ca6a6c0938498694aebf597b453fe84f8686b64430a85dc1496b4739406210f9851a4e944e7c9037bc51361782a47eb49e22
|
7
|
+
data.tar.gz: c16949e2c3a8f012b6273037443c4906e23cdbf8dc812026554e51f43bd4405a95a83c3c3adc04dbf13e1c1de8a3bfcc03181535bde56f1163e7acc60fdd1ce8
|
data/lib/mina/extras/rainbows.rb
CHANGED
@@ -26,11 +26,11 @@ namespace :rainbows do
|
|
26
26
|
end
|
27
27
|
|
28
28
|
task :log do
|
29
|
-
command %{tail -f "#{fetch(:deploy_to)
|
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)
|
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)
|
5
|
-
shared_root = "<%= "#{fetch(:deploy_to)
|
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)
|
7
|
+
unicorn_pid = "<%= "#{fetch(:deploy_to)}/#{shared_path!}/pids/unicorn.pid" %>"
|
8
8
|
|
9
|
-
# God.pid_file_directory = File.join("<%= fetch(:deploy_to)
|
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)
|
1
|
+
rails_root = "<%= "#{fetch(:deploy_to)}/#{current_path!}" %>"
|
2
2
|
rails_env = "<%= rails_env || "production" %>"
|
3
|
-
pid_file = "<%= "#{fetch(:deploy_to)
|
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)
|
6
|
-
err_log = "<%= "#{fetch(:deploy_to)
|
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)
|
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" %>"
|
data/lib/mina/extras/unicorn.rb
CHANGED
@@ -48,11 +48,11 @@ namespace :unicorn do
|
|
48
48
|
end
|
49
49
|
|
50
50
|
task :log do
|
51
|
-
command %{tail -f "#{fetch(:deploy_to)
|
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)
|
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"
|
data/lib/mina/extras/version.rb
CHANGED