Deploying laravel
Hey railway team im having a hard time trying to build my laravel project with some extra build comands these are the commands "composer install && php artisan config:cache && php artisan event:cache && php artisan route:cache && php artisan optimize && php artisan migrate"
it says error but the error is not very helpful(look image attached)
Project id: 3eeeee07-630f-4d9a-8a7c-4d98d84e0d34
44 Replies
Project ID:
3eeeee07-630f-4d9a-8a7c-4d98d84e0d34
I would recommend checking out our guide - https://docs.railway.app/guides/laravel
"SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo for database.railway.internal failed: Name or service not known (Connection: mariadb, SQL: select table_name as
name
, (data_length + index_length) as size
, table_comment as comment
, engine as engine
, table_collation as collation
from information_schema.tables where table_schema = 'cvr-api' and table_type in ('BASE TABLE', 'SYSTEM VERSIONED') order by table_name)"
how come the Database URL does not seem to connect
any ideaduring build?
yea
because the private network is not available during the build, please read the guide to see how to get around that
okay thank you sir
"
You will need to bind to a IPv6 port to receive traffic on the private network.
"
right
no, please read the entire guide
š i cant find what ur talking abotut bro
please do not skim read - https://docs.railway.app/guides/laravel#set-up-database-migrations-crons-and-workers
so i jsut used public url š°
dthat dont feel right
found in his read.me on github
you do not need to use the public url, that is purely for example
TCP PRXY?
bro š
have you followed the guide?
yes ong what am i doing worng
lets see your scripts
i dont need all the scripts only run-app
i mean dont think this is wrong i just addedd a few things
filament and storage:link and optimize
okay and have you told railway to run that as the start script?
yessir
for some reason on hist github his is start.sh
he dont have the one in the article
ill talk with the creator
imma copy his and try again
from github
lol
switch to ur mariadb template and works
https://api-app-production-8da9.up.railway.app/
we up gangy
you are using the public url
yea
should i do private instead
of course
okidoki
but its not going to work with how you currently have it setup
its working wdym
what are you seeing that im not š
its working with the public url
yea im changing it now
the private url is not going to work with how you currently have it setup
oh you right im in the same circle
š
bro im so cooked 3 am
i just wanted to do this for fun now im dying insde
^
you can use the public url for now
okeeyy thanks
for the help !
Hey @Faith I am glad you got it resolved.
For the private url thing, I'll come back to you with some ways to make it work
Thank you @Prosper
@Faith I updated the guide here https://docs.railway.app/guides/laravel#set-up-database-migrations-crons-and-workers
thanks
Did this get you up and running using the private url?