hyperf/entrypoint.sh
2024-06-21 17:01:34 +09:00

11 lines
220 B
Bash
Executable File

#!/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 "$@"