Comments (8)
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.
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.
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.
What if I split this repo into another one supporting Heroku-16 with a commit before merging #1 ?
from heroku-google-application-credentials-buildpack.
I solved it for me by upgrading to heroku-18, so not for my sake. :)
from heroku-google-application-credentials-buildpack.
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.
@heavyperil that worked for me as well, thanks!
from heroku-google-application-credentials-buildpack.
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
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from heroku-google-application-credentials-buildpack.