GithubHelp home page GithubHelp logo

Comments (8)

sineraves avatar sineraves commented on July 1, 2024 41

We ended up resolving this without a buildpack.

We stored our raw credentials JSON in a GOOGLE_CREDENTIALS environment variable, and then added a .profile file to the root of our repository, containing:

echo ${GOOGLE_CREDENTIALS} > /app/google-credentials.json

Code in the .profile file is run on container startup, and will create /app/google-credentials.json with the contents of GOOGLE_CREDENTIALS at that time.

from heroku-google-application-credentials-buildpack.

sineraves avatar sineraves commented on July 1, 2024 6

This was not solved by upgrading to heroku-18 for us.

The contents of .profile.d/google-credentials.sh is echo > /app/google-credentials.json.

from heroku-google-application-credentials-buildpack.

amille14 avatar amille14 commented on July 1, 2024 1

I believe I'm running into the same issue as others here on heroku-18. I'm seeing this in the heroku logs indicating that the file is created in the wrong directory:

Error: The file at google-credentials.json does not exist, or it is not a file. ENOENT: no such file or directory, lstat '/app/server/google-credentials.json'

from heroku-google-application-credentials-buildpack.

elishaterada avatar elishaterada commented on July 1, 2024

What if I split this repo into another one supporting Heroku-16 with a commit before merging #1 ?

from heroku-google-application-credentials-buildpack.

hult avatar hult commented on July 1, 2024

I solved it for me by upgrading to heroku-18, so not for my sake. :)

from heroku-google-application-credentials-buildpack.

mlennie avatar mlennie commented on July 1, 2024

any update on this? I'm also getting contents of .profile.d/google-credentials.sh is echo > /app/google-credentials.json

from heroku-google-application-credentials-buildpack.

amille14 avatar amille14 commented on July 1, 2024

@heavyperil that worked for me as well, thanks!

from heroku-google-application-credentials-buildpack.

elishaterada avatar elishaterada commented on July 1, 2024

I probably won't update this repo since different solutions seem to work for different people and their respective Heroku stack versions.

I encourage forking or finding another solution since the repo itself only contains a few lines of code.

from heroku-google-application-credentials-buildpack.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.