Laravel installation error: "No application encryption key has been specified."

0

Hi, I have deployed a laravel application to elestic beanstalk here:

http://tomrainey.us-east-2.elasticbeanstalk.com/

but I get the following error message:

"Your app key is missing Generate your application encryption key using php artisan key:generate."

I'm totally new to this, so please be specific. Is this something I have to edit on my local machine or can I do it directly on my AWS installation?

Thanks.

demandé il y a un an513 vues
1 réponse
0

Execute the following command in Elastic Beanstalk EC2 to create the key.

sudo php artisan key:generate
sudo php artisan cache:clear

The command will set APP_KEY to .env in the Laravel directory.

profile picture
EXPERT
répondu il y a un an

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions