From 2543c5444650009fdbd8fe0634852ca6b7acda1c Mon Sep 17 00:00:00 2001 From: James Date: Wed, 27 Dec 2023 23:47:16 -0600 Subject: [PATCH] Update readme.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 83f577f..1a574b7 100644 --- a/README.md +++ b/README.md @@ -63,7 +63,7 @@ This has puma reload with any file changes while you are working on the app, whe . -Basically, you require the app from the config.ru, and then within you app files, any "require_relative" will be "Unreloader.require" instead, plus you do need to include the file extension. +Basically, you require the app from the config.ru, and then within you app files, any "require_relative" will be "Unreloader.require" instead, plus you do need to include the file extension when using Unreloader.require. In config.ru, the `dev =` line stores true or false depending on the RACK_ENV environment variable (see above for changing from default development). Then the `:reload=>dev` uses the dev variable to tell Unreload to reload files or not. Lastly the `run` command uses the dev variable to choose between running Unreloader, or bypass Unreloader and run App like normal in production.