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.

Select Settings in dev stage screenshot

Here click Show Env Variables.

Show dev env variables settings screenshot

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.

Add secret dev environment variable screenshot

Next we need to configure our secrets for the prod stage. Head over there and hit the Settings button.

Select Settings in prod stage screenshot

Click Show Env Variables.

Show prod env variables settings screenshot

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.

Add secret prod environment variable screenshot

Next, we’ll trigger our first deployment on Seed.