Tryin to deploy a laravel project,getting "Application failed to respond"
dspirel
FREEOP

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?

$10 Bounty

5 Replies

dspirel
FREEOP

7 months ago

729cfa77-b39a-49da-88a1-7385cd997017


dspirel
FREEOP

7 months ago

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.


dspirel
FREEOP

7 months ago

never mind,im gonna try with symfony…


phoenixauro
HOBBYTop 10% Contributor

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


clashing
HOBBY

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


Loading...