11 lines
220 B
Bash
Executable File
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 "$@"
|