Skip to content

Commit 680afaa

Browse files
committed
added log task
1 parent ca53318 commit 680afaa

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

Makefile

+1
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ support/modules.md: \
1717
lib/mina/rbenv.rb \
1818
lib/mina/rvm.rb \
1919
lib/mina/npm.rb \
20+
lib/mina/tools.rb \
2021
lib/mina/whenever.rb
2122
cat $^ | ruby support/to_md.rb > $@
2223

lib/mina/rails.rb

+7
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,13 @@ def check_for_changes_script(options={})
135135
queue echo_cmd %[cd "#{deploy_to!}/#{current_path!}" && #{rails} console && exit]
136136
end
137137

138+
# ### log
139+
# Tail log from server
140+
desc "Tail log from server"
141+
task :log => :environment do
142+
queue "tail -f #{deploy_to}/#{current_path}/log/#{rails_env}.log"
143+
end
144+
138145
# ## Deploy tasks
139146
# These tasks are meant to be invoked inside deploy scripts, not invoked on
140147
# their own.

lib/mina/version.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Mina
22
def self.version
3-
"0.3.5"
3+
"0.3.6"
44
end
55
end

0 commit comments

Comments
 (0)