amastellone / mail-funnel-client

Mail-Funnel, a Shopify Embedded App available in the Shopify App Store
2 stars 3 forks source link

Production + Staging Deployment: Set Environment Variables on Heroku Server #21

Open vaskaloidis opened 7 years ago

vaskaloidis commented 7 years ago

Environment variables Create the Environment Variables in the Heroku App's settings (Settings -> Config Variables -> Reveal Variables) that correspond to the applications. Set these in .env on the client.

Each needs to be created in Shopify as a new Shopify app for production and staging, and then they need to be added to the Heroku app manually. So each Heroku app needs to have a corresponding Shopify app, for production. We can clean up the Shopify apps that we use for Dev later.

These variables are loaded into the configs table in the database when we seed it. So if you change the variables, you need to re-seed the database, which can lead to some issues. So I am creating a separate ticket to create a new Rake Task for this.

Shopify