datamade / how-to

📚 Doing all sorts of things, the DataMade way
MIT License
81 stars 12 forks source link

Mismatch in Netlify and local docker containers #205

Closed smcalilly closed 3 years ago

smcalilly commented 3 years ago

Description

From a chat working on the Courts project, where I had issues deploying to Netlify:

There is an issue with environment variables and the gatsby-source-google-docs package. My local environment requires different variables than what works on Netlify. Locally, my docker environment required these env variables:

In deployment, the build requires a single variable, which contains the values from the above variables:

At first, I couldn’t get the single variable to work locally. My local build worked when I changed the variables to match what’s required by the gatsby-source-google-docs package’s latest version. When trying to deploy a review app, the multiple variables would not work on the Netlify deployment.

I suspect that the different environments are using different versions of the gatsby-source-google-docs package. I don’t know how to dig into the deployment to find which version the deployment build uses, but this seems like something we need to figure out going forward. Has been a headache for me.

Steps to reproduce

hancush commented 3 years ago

Migrate this issue to charges app and address using project time.

smcalilly commented 3 years ago

Closing this because I've opened an issue on the app's repo: https://gitlab.com/court-transparency-project/charges-app/-/issues/43