Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions lib/uberspacify/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down