Compare commits
1 commit
main
...
roda-views
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2543c54446 |
|
|
@ -63,7 +63,7 @@ This has puma reload with any file changes while you are working on the app, whe
|
|||
|
||||
<https://github.com/jeremyevans/rack-unreloader>.
|
||||
|
||||
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.
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue