简体   繁体   中英

Rails Server reload models

When I'm developing, I've noticed that changing some files requires a restart of 'rails server' (webrick) in order for it to pick up the changes; I've noticed this for models and action mailers so far- is there any way to avoid the restart, which takes a full 60 seconds or so on my machine?

Cheers, Chris.

I'm not seeing a need to restart for anything other than the core Rails config stuff. Models / Mailers etc should refresh happily in Rails in development mode.

Are you sure you're in development mode? ( which should be the default? )

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM