Using JSON File as Environment variable in Railway for Firebase
Railway only allows defining environment variables with values inline. But to authenticate with firebase, I need to use a json file like
firebase-service-account.json
and provide path to this file as value of env variable GOOGLE_APPLICATION_CREDENTIALS
. How do I do this in build setup?25 Replies
Project ID:
N/A
You might find these helpful:
- error reading railway variable
- google cloud - api key application credentials
- Adding a JSON file
⚠️ experimental feature
Search up npm post install
This is for python FastAPI project and not nodejs project.
Ope
Use dockerfile
Or make your build command something like
echo $GOOGLE_JSON >> file.json && normal_build_command
ok, I already have docker file. Do you have example code snippet copy contents env variable to local file.json ?
???
I just gave you it
Just use the first part
cool, thank you for quick response
fixed
I’m @ loop_cat#7061 fr
i could have gave better advice in my sleep
Cap I got here first
You were sleeping and you didn’t give any advice
🦴
true, this is your thread to wreck havoc on now
A large golden retriever spawned in @Brody
i like cats
The floor dog
a dog isnt a cat
Real
Real
are you excited for opera gx vtuber?
What??? Are
What
you didnt know?
No
get out of your rock silly boy
Ok