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.

Select dev stage in Settings screenshot

Here click Show Env Variables.

Show dev env variables settings screenshot

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.

Add secret dev environment variable screenshot

Next we need to configure our secrets for the prod stage. Head over to the prod stage in your app Settings.

Select prod stage in Settings screenshot

Click Show Env Variables.

Show prod env variables settings screenshot

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.

Add secret prod environment variable screenshot

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