7 months ago
Im guessing the issue is environment variables,do i need to get rid of ALL warnings in the deploy logs for env variables not being set?
5 Replies
also im not sure how the formatting of a json should be in an env variable…"{\"type\":\"service_account\",\"pro ... \"}"
this worked locally
but in the railway deploy logs im getting this error:
[laravel:warn] Your app configuration references the GOOGLECLOUDCREDENTIALS') ? jsondecode(env('GOOGLECLOUD_CREDENTIALS environment variable, but it is not set.
7 months ago
In railway you should just add {\"type\":\"service_account\",\"pro ... \"} don't wrap it in double quotes. Railway will do that automatically
6 months ago
Did that help, dspirel?
Moreover, you can add the variables as a key-value pair separately, via the dashboard itself. It removes the complexity of formatting the JSON file. For instance, service variables are the ones that you would like to use: https://docs.railway.com/guides/variables#service-variables. Do let me know if that helps