summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--config/deploy.rb3
-rw-r--r--config/recipes/server.rb4
2 files changed, 7 insertions, 0 deletions
diff --git a/config/deploy.rb b/config/deploy.rb
index 0ac0220..81b74a3 100644
--- a/config/deploy.rb
+++ b/config/deploy.rb
@@ -9,6 +9,8 @@ load "config/recipes/nodejs"
load "config/recipes/rbenv"
load "config/recipes/newrelic"
load "config/recipes/monit"
+# general tasks
+load "config/recipes/server"
set :application, "parley"
set :user, "deployer"
@@ -29,3 +31,4 @@ after "deploy", "deploy:cleanup" # keep only the last 5 releases
# cap deploy:setup
# cap deploy:cold
# cap nginx:start # this may be necessary if it didn't start up properly before
+
diff --git a/config/recipes/server.rb b/config/recipes/server.rb
new file mode 100644
index 0000000..6d71371
--- /dev/null
+++ b/config/recipes/server.rb
@@ -0,0 +1,4 @@
+desc "tail the logs on an app server (cap qa logs)"
+task :logs, roles: :app do
+ stream "tail -f #{shared_path}/log/#{rails_env}.log"
+end