Configure Secrets in Seed
Before we can do our first deployment, we need to make sure to configure our secret environment variables. If you’ll recall, we have explicitly not stored these in our code (or in Git). This means that if somebody else on our team needs to deploy, we’ll need to pass the .env
file around. Instead we’ll configure Seed to deploy with our secrets for us.
To do that, hit the Settings button in our dev stage.
Here click Show Env Variables.
And type in STRIPE_SECRET_KEY
as the Key and the value should be the STRIPE_TEST_SECRET_KEY
back from the Load secrets from env.yml chapter. Hit Add to save your secret key.
Next we need to configure our secrets for the prod
stage. Head over there and hit the Settings button.
Click Show Env Variables.
And type in STRIPE_SECRET_KEY
as the Key and the value should be the STRIPE_TEST_SECRET_KEY
back from the Load secrets from env.yml chapter. Hit Add to save your secret key.
Next, we’ll trigger our first deployment on Seed.
For help and discussion
Comments on this chapter