From edc4b24beca98d5280d3167c26ffb664f521d9e2 Mon Sep 17 00:00:00 2001 From: Tobias Preuss Date: Thu, 15 Aug 2013 21:00:13 +0200 Subject: [PATCH 1/2] Add task deploy:status to display status information. + Task will be visible in tasks list. --- lib/uberspacify/base.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/uberspacify/base.rb b/lib/uberspacify/base.rb index f5b2236..088c327 100644 --- a/lib/uberspacify/base.rb +++ b/lib/uberspacify/base.rb @@ -91,6 +91,10 @@ def abort_red(msg) end namespace :deploy do + desc "Displays status information of the application." + task :status do + run "svstat #{fetch :home}/service/rails-#{fetch :application}" + end task :start do run "svc -u #{fetch :home}/service/rails-#{fetch :application}" end From 9211caa3ab1177303cfbd1b234ea04a650cc571d Mon Sep 17 00:00:00 2001 From: Tobias Preuss Date: Thu, 15 Aug 2013 21:18:47 +0200 Subject: [PATCH 2/2] Describe task deploy:status in README. --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index d5ba4f6..297a953 100644 --- a/README.md +++ b/README.md @@ -89,6 +89,10 @@ Should you ever need to stop/start/restart your app, you can do so using Capistr $ bundle exec cap deploy:{stop|start|restart} +Further, the following command will tell you if the server is currently running: + + $ bundle exec cap deploy:status + That's it folks. Have fun. ## License