rails spring: 另一个 rails sprocket/watch. 极大节省你的时间
访问量: 2429
2010/2011年左右,我尝试过使用 rails sprocket/watch, 确实能快速节省时间。
缺点是每次修改完 config 文件之后,必须重新启动 sprocket server. 如果不启动,就会产生各种麻烦。
而且我个人是个喜欢 随时保存( :w ) 的人,所以每次保存vim都会引起不必要的报错,让我对这个不太感冒。
不过今天还是试试spring 吧,毕竟 tishadow节省了我们大量的时间。
refer to: https://github.com/rails/spring
# Gemfile gem 'spring' $ bundle install $ bundle exec spring binstub --all # 启动spring $ bin/spring status 14607 spring server | youku_bd_automation | started 6 secs ago # 再次启动,前面加个 spring 来运行命令。 $ bundle exec spring rspec spec/models/