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 dev in your app Settings.
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 to the prod stage in your app Settings.
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