Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
编辑数据文件时如何强制中间人重新加载?
例如。这是我的应用程序:
├── Gemfile ├── Gemfile.lock ├── config.rb ├── data │ └── products.yml └── source ├── ...
当我编辑时data/products.yml,数据不会出现在站点上,直到我手动重新启动服务器bundle exec middleman。
data/products.yml
bundle exec middleman
如果您手动添加data到重新加载路径,它会起作用
data
middleman server --reload-paths data/
https://github.com/middleman/middleman/issues/726