diff --git a/.watcher.php b/.watcher.php new file mode 100644 index 0000000..39f4bab --- /dev/null +++ b/.watcher.php @@ -0,0 +1,23 @@ + ScanFileDriver::class, + 'bin' => PHP_BINARY, + 'watch' => [ + 'dir' => ['app', 'config'], + 'file' => ['.env'], + 'scan_interval' => 2000, + ], + 'ext' => ['.php', '.env'], +]; diff --git a/app/Controller/IndexController.php b/app/Controller/IndexController.php index 9be020b..4247ab7 100644 --- a/app/Controller/IndexController.php +++ b/app/Controller/IndexController.php @@ -12,6 +12,8 @@ declare(strict_types=1); namespace App\Controller; +use Hyperf\HttpServer\Annotation\AutoController; + class IndexController extends AbstractController { public function index() diff --git a/entrypoint.sh b/entrypoint.sh deleted file mode 100755 index bd858e4..0000000 --- a/entrypoint.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -# Check if vendor directory exists -if [ ! -d "/opt/www/vendor" ]; then - # Run composer install if vendor directory does not exist - composer install -fi - -# Run Hyperf application -php bin/hyperf.php "$@"