- Set secret key:
To create a secret key, run the following command:
bundle exec rake secretCopy the secret key and put it toconfig/secrets.ymlfile with the following format:
production:
secret_key_base: <%=ENV["SECRET_KEY_BASE"]%>
- Create credentials
- Remove the old credentials:
rm config/credentials.yml.enc