Skip to content

Commit

Permalink
Artisan optimize swapped out
Browse files Browse the repository at this point in the history
  • Loading branch information
rockhopsoft committed Jan 30, 2021
1 parent 24cded2 commit 6ef09ad
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 6 deletions.
12 changes: 9 additions & 3 deletions src/bin/scripts-openpolice-extension/mac/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,9 @@ perl -pi -w -e "s/DB_DATABASE=myopenpolice/DB_DATABASE=$dbname/g" txt.env
perl -pi -w -e "s/myopenpolice.local/$dir.local/g" txt.env
mv txt.env .env
php artisan key:generate
php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
COMPOSER_MEMORY_LIMIT=-1 composer require laravel/ui paragonie/random_compat
php artisan ui vue --auth
composer require mpdf/mpdf
Expand All @@ -67,7 +69,9 @@ cp ../scripts-openpolice-extension/mac/config-app.php config/app.php
composer update
composer dump-autoload
echo "0" | php artisan vendor:publish --force
php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache

php artisan migrate --force
php artisan db:seed --force --class=OpenPoliceSeeder
Expand All @@ -84,6 +88,8 @@ if [ "$uploadzips" == "y" ]; then
php artisan db:seed --force --class=ZipCodeSeeder4
fi

php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
composer dump-autoload
curl http://$dir.local/css-reload
12 changes: 9 additions & 3 deletions src/bin/scripts-openpoliceorg/mac/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ perl -pi -w -e "s/DB_DATABASE=myopenpolice/DB_DATABASE=$dbname/g" txt.env
perl -pi -w -e "s/myopenpolice.local/$dir.local/g" txt.env
mv txt.env .env
php artisan key:generate
php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
COMPOSER_MEMORY_LIMIT=-1 composer require laravel/ui paragonie/random_compat
php artisan ui vue --auth
composer require mpdf/mpdf
Expand All @@ -62,7 +64,9 @@ cp ../scripts-openpoliceorg/mac/config-app.php config/app.php
composer update
composer dump-autoload
echo "0" | php artisan vendor:publish --force
php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache

#DBKEY='\\Illuminate\\Support\\Facades\\DB'
#perl -pi -w -e "s/$DBKEY::statement('SET SESSION sql_require_primary_key=0'); / /g" database/migrations/*.php
Expand All @@ -77,6 +81,8 @@ php artisan db:seed --force --class=ZipCodeSeeder2
php artisan db:seed --force --class=ZipCodeSeeder3
php artisan db:seed --force --class=ZipCodeSeeder4

php artisan optimize:clear
php artisan config:cache
php artisan route:cache
php artisan view:cache
composer dump-autoload
curl http://$dir.local/css-reload

0 comments on commit 6ef09ad

Please sign in to comment.