- 
          
          Missing `secret_key_base` for 'production' environmentDev/Ruby On Rails 2020. 2. 22. 15:20반응형ArgumentError: Missing `secret_key_base` for 'production' environment, set this string with `rails credentials:edit`위와 같은 에러가 나오면 secret_key_base=xxxxx 와 같은 key=value 를 설정해주면 되는데. 1. 먼저 config/environments/production.rb 안에 아래와 같이 삽입 config.secret_key_base = ENV["SECRET_KEY_BASE"]2. rake secret 를 실행하여 값생성( 또는 rails credentials:edit) 3. 환경변수 등록 - Elastic Beanstalk 사용 시 Elastic Beanstalk > Configuration > Software 에 환경변수 등록 - SECRET_KEY_BASE = <생성된 값> 그리고 저장 반응형'Dev > Ruby On Rails' 카테고리의 다른 글Could not load the 'listen' gem. Add `gem 'listen'` to the development group of your Gemfile (LoadError) (0) 2020.02.11 Webpacker configuration file not found (0) 2020.01.30 Address already in use - bind(2) (Errno::EADDRINUSE) (0) 2019.10.23 rails controller 에 curl post 하는 방법 (0) 2019.10.07 Ruby On Rails 리눅스 상에 처음 설치하기 (0) 2019.10.05