I'm working through a Rails exercise dealing with Figaro and syncing tokens on both the production and development environment, and I'm not sure if what I've done has fulfilled the intent of this exercise. Specifically, it says to run rake secret to generate the token, followed by heroku config:set SECRET_KEY_BASE=thegeneratedtoken to set that token to the ENV variable on production. I've completed these steps.
Then I'm asked to add SECRET_KEY_BASE to the application.yml file, which I've done, and use Figaro to sync the tokens on Production and Development. Then set the Development key to equal the same ENV-stored token as the Production key in secrets.yml.
So my secrets.yml file looks like this:
secrets.yml
development:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>
while the application.yml file actually includes the generated token after SECRET_KEY_BASE:
Does this seem like I've completed all necessary tasks? I guess I was mostly hung up on the "use Figaro to sync the tokens..." part of the exercise. I wasn't sure if I needed to run some command here, or if they're simply saying adding the token to the application.yml file IS syncing the environments.