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 | Missing encryption keyでPrecompiling assets failedなった時やることの全て『2020』| heroku Rails

Last updated at Posted at 2020-04-19

ステップ1

仕切り直す。 credentials.yml.encmaster.keyを消す

スクリーンショット 2020-04-19 17.10.49.png

ステップ2

下記のコマンドをよしなに実行

% EDITOR="vi" bin/rails credentials:edit
% heroku config:set RAILS_MASTER_KEY=`cat config/master.key`
% EDITOR="vi" bin/rails credentials:show

done

% git add . -A
% git commit -m "key"
% RAILS_ENV=production bin/rails assets:precompile
% sudo git push -f heroku master

備考

これでherokuのdbをmigrate

% heroku run rake db:migrate
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?