Skip to content

A docker container for monitoring PHP file changes an automatically running Laravel Wayfinder.

Notifications You must be signed in to change notification settings

stagerightlabs/watchfinder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Watch Finder

A docker container for monitoring PHP file changes an automatically running Laravel Wayfinder.

Using this container service will allow you to take advantage of the benefits of Wayfinder without needing to have node installed in your PHP container.

Usage

Add this container as a separate service in your docker compose.yaml file.

wayfinder:
    build:
        context: stagerightlabs/watchfinder
    environment:
        - WATCH_CMD=php artisan wayfinder:generate --with-form
    volumes:
        - ./:/var/www/html:cached

The WATCH_CMD variable is the artisan command you want to run when file changes are detected.

Notes

With this service in place in your local docker environment you will no longer need to use the Vite Wayfinder plugin; you can remove it completely from your vite config file.

About

A docker container for monitoring PHP file changes an automatically running Laravel Wayfinder.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published