Initial Rails test app
This commit is contained in:
20
app/views/home/index.html.erb
Normal file
20
app/views/home/index.html.erb
Normal file
@@ -0,0 +1,20 @@
|
||||
<div class="container">
|
||||
<h1>Rails Test Application</h1>
|
||||
<p>Unity Platform - Coolify Deployment Test</p>
|
||||
|
||||
<h3>Status</h3>
|
||||
<div class="status <%= @db_status == 'connected' ? 'ok' : 'error' %>">
|
||||
Database: <strong><%= @db_status %></strong>
|
||||
</div>
|
||||
|
||||
<h3>Environment</h3>
|
||||
<ul>
|
||||
<li>Rails Version: <code><%= Rails.version %></code></li>
|
||||
<li>Ruby Version: <code><%= RUBY_VERSION %></code></li>
|
||||
<li>Environment: <code><%= Rails.env %></code></li>
|
||||
<li>Server Time: <code><%= @timestamp %></code></li>
|
||||
</ul>
|
||||
|
||||
<h3>Health Endpoint</h3>
|
||||
<p>Check <a href="/health">/health</a> for JSON status</p>
|
||||
</div>
|
||||
Reference in New Issue
Block a user