{"id":15172660,"url":"https://github.com/irving-frias/drupal_watcher","last_synced_at":"2026-01-26T00:08:20.620Z","repository":{"id":221563340,"uuid":"754742489","full_name":"irving-frias/drupal_watcher","owner":"irving-frias","description":"This script monitors specified directories for file changes and clears the Drupal cache using Drush whenever a file is modified.","archived":false,"fork":false,"pushed_at":"2025-06-21T20:24:30.000Z","size":8,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-06-21T21:15:15.002Z","etag":null,"topics":["automation","drupal","drupal-project","drush","macosx","shell-script","watchdog"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/irving-frias.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-08T17:22:24.000Z","updated_at":"2025-06-21T20:21:55.000Z","dependencies_parsed_at":"2024-02-08T18:44:42.452Z","dependency_job_id":"d8781e78-542b-433a-b592-f64cd5767971","html_url":"https://github.com/irving-frias/drupal_watcher","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"4949a5afd0649d34e0f5bc38b796e3d8105e0934"},"previous_names":["irving-frias/drupal_watcher"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/irving-frias/drupal_watcher","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irving-frias%2Fdrupal_watcher","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irving-frias%2Fdrupal_watcher/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irving-frias%2Fdrupal_watcher/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irving-frias%2Fdrupal_watcher/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irving-frias","download_url":"https://codeload.github.com/irving-frias/drupal_watcher/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irving-frias%2Fdrupal_watcher/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28761940,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-25T23:06:19.311Z","status":"ssl_error","status_checked_at":"2026-01-25T23:03:50.555Z","response_time":113,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["automation","drupal","drupal-project","drush","macosx","shell-script","watchdog"],"created_at":"2024-09-27T10:02:10.464Z","updated_at":"2026-01-26T00:08:20.601Z","avatar_url":"https://github.com/irving-frias.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drupal Watcher\n\n## Description\n\nThe Drupal Watcher script is a handy tool that monitors specified directories for file changes within a Drupal project. It automatically clears the Drupal cache using Drush whenever a file is modified, ensuring your Drupal site remains up-to-date and responsive to changes during development.\n\n## Installation\n\n1. **Move the Script**: Place the `drupal_watcher` script in `/usr/local/bin` to make it accessible system-wide:\n    ```bash\n    mv drupal_watcher /usr/local/bin/drupal_watcher\n    ```\n\n2. **Navigate to Your Drupal Project Directory**:\n    ```bash\n    cd /Users/user/Sites/drupal-project\n    ```\n\n3. **Run the Script**:\n    ```bash\n    drupal_watcher\n    ```\n\n## Requirements\n\n- **Operating System**: macOS\n- **Package Manager**: Homebrew\n\n## Usage\n\nThe script automatically monitors the following directories for file changes:\n\n- `docroot/modules/custom`\n- `docroot/themes/custom`\n\nIt requires Drush to be installed in the `vendor/bin` directory.\n\n## Customization\n\nYou have the flexibility to customize the directories to watch and the actions to perform by directly editing the script variables within the `drupal_watcher` file. This customization allows you to tailor the script according to your Drupal project's specific requirements and directory structure.\n\n## Notes\n\n- **Executable Permissions**: Before moving the script file (`drupal_watcher`) to `/usr/local/bin`, ensure it has executable permissions set:\n  ```bash\n  chmod +x drupal_watcher\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firving-frias%2Fdrupal_watcher","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firving-frias%2Fdrupal_watcher","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firving-frias%2Fdrupal_watcher/lists"}