Skip to content

Add hot reloading on CLI Tools #61

Description

@cirospaciari

Should not add any dependencies, should use libuv to watch files.

 --static-files-dir PATH                             Enable static file server on this directory. You can also provide ROUTE:PATH ex: /assets:./public to say in what HTTP path route you wanna serve the files, default ROUTE is /.
 --reload                                            Enable auto-reload. These options also disable the --workers or -w options.
 --reload-dir PATH                                   Set reload directories explicitly, instead of using the current working directory.
 --reload-include TEXT                               Set extensions to include while watching for files. 
                                                     Includes '.py,.html,.js,.png,.jpeg,.jpg and .webp' by default; 
                                                     these defaults can be overridden with `--reload-exclude`. 
 --reload-exclude TEXT                               Set extensions to include while watching for files. 
 --reload-delay INT                                  Milliseconds to delay reload between file changes. [default: 1000]

Should allow multiple --reload-dir and --static-files-dir.

Activity

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

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationenhancementNew feature or request

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions