I'm create a script to start my Laravel 5.8 project
#Install dependencies
composer self-update
composer install
# create .env base on .env.example
cat .env.example > .env
#permission
chmod -R 777 .env
#create the key
php artisan key:generate --force
cat .env
#set permission
chmod -R 777 bootstrap/ vendor/ storage/ public/
sleep 1
#clear cache
php artisan config:cache
php artisan cache:clear
composer dump-autoload
php artisan clear-compiled
php artisan key:generate
python -mwebbrowser http://127.0.0.1:8000
php artisan serve
This line does not seem to work.
php artisan key:generate --force
Look at my .env
⚡️ bheng cat .env
APP_ENV=local
APP_URL=http://bheng.test/
APP_DEBUG=true
APP_KEY=***
CODE=###
#---------------------------------------------- DATABASE
DB_CONNECTION=mysql
DB_HOST=4.2.2.1
DB_DATABASE=b
DB_USERNAME=dev
DB_PASSWORD=123
DB_PORT=3306
#---------------------------------------------- EMAIL
MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_FROM=8863b0c62fbcff
MAIL_PASSWORD=***
#----------------------------------------------
GOOGLE_WEB_API_KEY=***
Can someone please help me ?
from php artisan key:generate --force - still NOT write to .env
No comments:
Post a Comment