Question

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.

Was it helpful?

Solution

It works if you manually add data to the reload paths

middleman server --reload-paths data/

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

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top