문제

How do I force middleman to reload when I edit the data file?

For example. This is my app:

├── Gemfile
├── Gemfile.lock
├── config.rb
├── data
│   └── products.yml
└── source
    ├── ...

When I edit data/products.yml the data does not appear on the site until I manually restart the server with bundle exec middleman.

도움이 되었습니까?

해결책

It works if you manually add data to the reload paths

middleman server --reload-paths data/

https://github.com/middleman/middleman/issues/726

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top