Onur Okyay
Onur Okyay

Reputation: 21

How to set enviroment variable Heroku

I need to set enviroment variable GOOGLE_APPLICATION_CREDENTIALS at .json format like service-account-file.json but i cant. I tried this https://elements.heroku.com/buildpacks/buyersight/heroku-google-application-credentials-buildpack and this https://github.com/gerywahyunugraha/heroku-google-application-credentials-buildpack but it is not working.Heroku => java.io.IOException: Error reading credential file from environment variable GOOGLE_APPLICATION_CREDENTIALS, value 'google-credentials.json': File does not exist.

Upvotes: 0

Views: 125

Answers (1)

krupali makadiya
krupali makadiya

Reputation: 596

There is no such ways to set environment variable from json file you can use the environment variable like process.env.VARIABLENAME and define that variable name in config

Here i attach the screenshots from where you can define the variable enter image description here

Upvotes: 1

Related Questions