Technology Insights

View for Version Numbers, Hostnames, IPs, Etc.

Here’s some code (and rendered view) for various version numbers, host names, IPs for Ruby, Rails, PostgreSQL, SMTP. <b>Network</b><br> UNIX hostname: <code><%= `hostname` %></code><br> SERVER_ADDR: <code><%= request.env[“SERVER_ADDR”].to_s %></code> <br> HOST_NAME : <code><%= request.host %></code> <br> REMOTE_ADDR: <code><%= request.env[“REMOTE_ADDR”].to_s %></code> <br> <br> <b>Software</b><br> Database: <code><%= ActiveRecord::Base.connection.select_value(“SELECT  VERSION()”) %></code><br> Email delivery method: <code><%= ActionMailer::Base.delivery_method %></code><br> SMTP server:…