简体   繁体   English

Rails Server重新加载模型

[英]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; 在开发过程中,我注意到更改某些文件需要重新启动“ rails服务器”(webrick),以使其能够进行更改。 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? 到目前为止,我已经注意到模型和动作邮件程序有这种方法-有什么方法可以避免重启,因为重启整个机器大约需要60秒钟?

Cheers, Chris. 干杯,克里斯。

I'm not seeing a need to restart for anything other than the core Rails config stuff. 除了核心的Rails配置之外,我没有看到需要重新启动任何东西。 Models / Mailers etc should refresh happily in Rails in development mode. 在开发模式下,模型/邮件程序等应该在Rails中愉快地刷新。

Are you sure you're in development mode? 您确定您处于开发模式吗? ( which should be the default? ) (哪个应该是默认值?)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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