Enhanced production build for smaller zip archives (use production of production mode)

This commit is contained in:
Alex Tselegidis 2020-12-15 22:11:13 +02:00
parent f199a46dc7
commit 07f333a14a
2 changed files with 5 additions and 3 deletions

View File

@ -13,7 +13,8 @@ rm -rf build/tests/
rm -rf build/vendor/
rm build/phpunit.xml
cd build
composer install --no-ansi --no-interaction --no-progress --no-scripts --optimize-autoloader
composer install --no-ansi --no-dev --no-interaction --no-progress --no-scripts --optimize-autoloader
composer dumpautoload
rm composer.lock
cd ../
@ -28,4 +29,5 @@ cp README.md build/
echo "Zip Build"
cd build
find . -name '. DS_Store' -type f -delete
zip build.zip -r .

View File

@ -6,7 +6,7 @@ APP_NAME=Plainpad
# This value determines the "environment" your application is currently
# running in. This may determine how you prefer to configure various
# services the application utilizes. Set this in your ".env" file.
APP_ENV=local
APP_ENV=production
# This key is used by the Illuminate encrypter service and should be set
# to a random, 32 character string, otherwise these encrypted strings
@ -17,7 +17,7 @@ APP_KEY={KEY}
# When your application is in debug mode, detailed error messages with
# stack traces will be shown on every error that occurs within your
# application. If disabled, a simple generic error page is shown.
APP_DEBUG=true
APP_DEBUG=false
# This URL is used by the console to properly generate URLs when using
# the Artisan command line tool. You should set this to the root of