Domanda

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.

È stato utile?

Soluzione

It works if you manually add data to the reload paths

middleman server --reload-paths data/

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

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top