0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 3 years have passed since last update.

herokuにてNo application encryption key has been specified.が出た時の対処法

Posted at

*Laravel環境です。

原因

APP_KEYが設定されていないことが原因です。 まずLocalでAPP_KEYを生成、その後herokuにkeyを登録すると動きます。

1.keyの生成

下記コマンドを入力
php artisan key:generate --show

2.herokuにkeyを登録

生成されたkeyを下記コマンドでherokuに登録します。
heroku config:set APP_KEY=<生成されたkey>

以上です。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?