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 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