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.yml
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 stripeSecretKey
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 back to the service page and click on prod.
Hit the Settings button.
Click Show Env Variables.
And type in stripeSecretKey
as the Key and the value should be the STRIPE_PROD_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 chapterIf you liked this post, please subscribe to our newsletter, give us a star on GitHub, and follow us on Twitter.