Repository navigation
Add a free public demo on Render - #50
Merged
Merged
Conversation
render.yaml deploys a free Render web service with DEMO_MODE=true. Demo mode loads the demo data in production, shows the demo sign-in on the sign in page, never sends email and resets everything nightly. /up is reachable over plain HTTP for uptime monitors, and mailer links fall back to Render's hostname. The deploy guide explains how to keep it awake with a free UptimeRobot monitor.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds a one-click free demo on Render, kept awake by a free uptime monitor.
What changed
render.yaml: a Blueprint for a free Docker web service withDEMO_MODE=true, a generatedSECRET_KEY_BASEand a/uphealth check.DEMO_MODE:/upno longer redirects to HTTPS, so health checks and uptime monitors get a 200.RENDER_EXTERNAL_HOSTNAMEwhenAPP_HOSTisn't set./upevery 5 minutes).Render's free plan has no persistent disk, so this is for a demo only. The docs say so and point to the real deploy options.
The Deploy to Render button only works once the repository is public.
Checks
bin/rails test: 136 runs, 0 failures. New tests cover the nightly reset (including the search index) and the demo sign-in hint.bin/rubocop: no offensesbin/brakeman: no warningsDEMO_MODE=trueon a fresh database:db:prepareloaded the demo data./upreturned 200.reset_demorecurring task.