how to do google gcloud login within spring boot app deployed on railway
happenintech
HOBBYOP

a year ago

I app need to use google gcloud service and for that I had to do google login by command: gcloud auth application-default login
How to do this in railway

Solved

2 Replies

a year ago

Hello,

To authenticate with Google Cloud services in your Spring Boot app on Railway, you should use a service account instead of running gcloud auth application-default login.

Once you have the JSON file from that, you can base64 encode the json file, set it as a service variable, and then during runtime base64 decode that variable, save it into a file, and point firebase to that file.

Hope this helps!

Best,
Brody


Status changed to Awaiting User Response Railway about 1 year ago


happenintech
HOBBYOP

a year ago

Got it. Thanks


Status changed to Awaiting Railway Response Railway about 1 year ago


Status changed to Solved brody about 1 year ago


Loading...