Skip to content

feature request: watching extra folders #9

Description

@ronkorving

It would be great if the mage server would also restart if certain extra folders (that I want to be able to specify) observe changes. The direct reason for me wanting this is that on my project I have a folder with a bunch of JSON files that get cached on startup. It would be nice to restart the server when that data changes so caches can refresh.

I can imagine running the console with package.json script looking something like this:

{
    "scripts": {
        "develop": "mage-console --watch-paths ./static-data ./foo ./bar"
    }
}

PS: I don't mind making a PR for this of course, but anyone can pick this up if they have time in the short term and feel like doing this ;) Also would like to see feedback on the idea before developing.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions