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