diff --git a/src/.s2i/bin/assemble b/src/.s2i/bin/assemble index 8cc5103..e440bef 100755 --- a/src/.s2i/bin/assemble +++ b/src/.s2i/bin/assemble @@ -1,42 +1,27 @@ #!/bin/bash set -x set -e -function fix-permissions () { - chown -R default:root $1 - # chgrp -R 0 $1 - chmod -R og+rw $1 - find $1 -type d -exec chmod g+x {} + -} - shopt -s dotglob echo "--->> $(rm -vrf vendor/ composer.lock)" echo "---> Installing application source..." rm -fR /tmp/src/.git mv /tmp/src/* ./ pushd /opt/app-root/src -ls - fix-permissions /opt/app-root/src if [ -f "composer.json" ]; then echo "--->> Detected composer.json, running install" php -dmemory_limit=${COMPOSER_MEMORY_LIMIT:--1} /usr/bin/composer install ${COMPOSER_ARGS} rm -rf ~/.cache/composer/ fi -#./artisan horizon:install - #echo "---->> Run npm run prod" #npm install #npm run ${LARAVEL_ENV:=prod} && rm -rf ~/.npm/ -# -id -ls -lisah /opt/app-root/src/bootstrap/cache/packages.php -ls -lisah /opt/app-root/src/vendor fix-permissions /opt/app-root/src