5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# File 'lib/generators/rn_stack/monitor/monitor_generator.rb', line 5
def setup_monitoring
say "Scaffolding Observability & Health Checks..."
create_file "app/controllers/rn_stack/health_controller.rb", <<~RUBY
module RnStack
class HealthController < ApplicationController
def show
render json: { status: "OK", database: "connected" }, status: :ok
end
end
end
RUBY
say "Configuring Error Monitoring (Sentry)..."
say "Monitoring & Health Checks initialized."
end
|