first crack at system status app
This commit is contained in:
parent
be93849c02
commit
6b5ccdcc16
@ -1,5 +1,7 @@
|
||||
class StatusController < ApplicationController
|
||||
def index
|
||||
time = Time.now
|
||||
@time = time
|
||||
@ps = `ps aux`
|
||||
end
|
||||
|
||||
end
|
||||
|
@ -1,2 +1,2 @@
|
||||
<h1>Status#index</h1>
|
||||
<p>Find me in app/views/status/index.html.erb</p>
|
||||
<h1>Processes running at <%= @time %></h1>
|
||||
<pre><%= @ps %></pre>
|
||||
|
@ -56,5 +56,5 @@ Status::Application.routes.draw do
|
||||
|
||||
# This is a legacy wild controller route that's not recommended for RESTful applications.
|
||||
# Note: This route will make all actions in every controller accessible via GET requests.
|
||||
# match ':controller(/:action(/:id(.:format)))'
|
||||
match ':controller(/:action(/:id(.:format)))'
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user