diff --git a/src/.s2i/bin/run b/src/.s2i/bin/run index 9261269..6598059 100755 --- a/src/.s2i/bin/run +++ b/src/.s2i/bin/run @@ -1,65 +1,20 @@ #!/bin/bash shopt -s dotglob -id -ls -lisah /opt/app-root/src - pushd /opt/app-root/src echo "----> Remove bootstrap cache" find bootstrap/cache/ -type f ! -name ".gitignore" -delete -if [ -z ${APP_KEY} ]; then - echo "----> Run artisan key:generate" - ./artisan key:generate - unset APP_KEY -fi - echo "----> Run artisan clear-compiled" ./artisan clear-compiled -if [ "${LARAVEL_ENV}" != "production" -a "${LARAVEL_ENV}" != "prod" ]; then - echo "----> Run artisan cache:clear" - ./artisan ${ARTISAN_VERBOSITY} cache:clear || true -fi - -rm -rvf bootstrap/cache/ -mkdir -vp bootstrap/cache/ -chown default bootstrap/cache - -./artisan db:ping --wait || exit 1 - -case ${ISV_ROLE} in - apache|APACHE|httpd|HTTPD) - echo "----> Starting httpd" - /usr/libexec/s2i/run 2>&1 - ;; - - horizon|HORIZON) - ./artisan migrate --force || : - echo "----> Starting horizon" - ./artisan horizon - ;; - - octane|OCTANE) - echo "----> Running octane" - exec ./artisan octane:start --host=0.0.0.0 - ;; - - server|SERVER) - echo "----> Running server" - exec ./artisan serve - ;; +#rm -rvf bootstrap/cache/ +#mkdir -vp bootstrap/cache/ +#chown default bootstrap/cache - worker|WORKER ) - ./artisan migrate --force || : - echo "----> Running worker" - exec ./artisan queue:work - ;; +#./artisan db:ping --wait || exit 1 - * ) - echo "----> Sleeping" - exec sleep 10000 - ;; -esac +echo "----> Running octane" +exec ./artisan octane:start --host=0.0.0.0