meow-deploy 0.0.9 → 0.0.10
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/meow-deploy/capistrano_integration.rb +22 -10
- data/lib/meow-deploy/version.rb +1 -1
- metadata +2 -2
@@ -37,6 +37,13 @@ module MeowDeploy
|
|
37
37
|
|
38
38
|
run "mkdir -p #{god_sites_path}"
|
39
39
|
end
|
40
|
+
|
41
|
+
namespace :db do
|
42
|
+
desc "Create the indexes defined on your mongoid models"
|
43
|
+
task :create_mongoid_indexes do
|
44
|
+
run "cd #{current_path} && bundle exec rake db:mongoid:create_indexes RAILS_ENV=production"
|
45
|
+
end
|
46
|
+
end
|
40
47
|
|
41
48
|
namespace :god do
|
42
49
|
desc "Reload god config"
|
@@ -79,20 +86,25 @@ module MeowDeploy
|
|
79
86
|
namespace :tail do
|
80
87
|
desc "Tail production log files"
|
81
88
|
task :production, :roles => :app do
|
82
|
-
|
83
|
-
trap("INT") { puts 'Interupted'; exit 0; }
|
84
|
-
puts "#{data}"
|
85
|
-
break if stream == :err
|
86
|
-
end
|
89
|
+
tail_log "production.log"
|
87
90
|
end
|
88
91
|
|
89
92
|
desc "Tail god log files"
|
90
93
|
task :god, :roles => :app do
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
94
|
+
tail_log "god.log"
|
95
|
+
end
|
96
|
+
|
97
|
+
desc "Tail cron log files"
|
98
|
+
task :cron, :roles => :app do
|
99
|
+
tail_log "cron.log"
|
100
|
+
end
|
101
|
+
end
|
102
|
+
|
103
|
+
def tail_log(log)
|
104
|
+
run "tail -f #{shared_path}/log/#{log}" do |channel, stream, data|
|
105
|
+
trap("INT") { puts 'Interupted'; exit 0; }
|
106
|
+
puts "#{data}"
|
107
|
+
break if stream == :err
|
96
108
|
end
|
97
109
|
end
|
98
110
|
end
|
data/lib/meow-deploy/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: meow-deploy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.10
|
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-11-
|
12
|
+
date: 2012-11-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: capistrano
|