Uptime and monitoring
RailsFast comes preconfigured with the allgood gem for health checks / smoke tests.
You can see all your current health checks by navigating to /healthcheck:
By default, we check things like whether the database is up and running, the server has enough disk and memory, etc. You can customize your health checks by editing your config/allgood.rb file. Check the allgood docs to know everything you can add to check the health of your app!
The recommended use of this /healthcheck endpoint is to use it together with an uptime monitoring service like UptimeRobot. In UptimeRobot, you'd just add https://YOURAPP.COM/healthcheck as an URL to monitor every 5 minutes, and whenever any of the checks fail, you'd get a notification, a call, or a text, depending on what you have configured. It's very useful to quickly know if there's anything wrong with your app and fix it before any of your users notice!
Telegram admin notifications (telegrama)
RailsFast also ships with the telegrama gem so your app can DM you (or a team supergroup) when things happen: new signups, new subscriptions, failed payments, exceptions — whatever you decide to instrument.
To turn it on: create a Telegram bot with @BotFather, put the bot token and your chat ID in config/initializers/telegrama.rb (via credentials), and send messages from anywhere in your app:
Telegrama.send_message("💸 New subscription: #{user.email}")
Version 0.3.0+ can also route messages into specific supergroup topics via message_thread_id — useful to split signups / payments / errors into their own threads. Full configuration in the telegrama README.