R
Railway•6mo ago
alansinthb

Docker build failed Laravel

Im getting this error every time when I treat to publish mi app context: 103fc8dcdc8c08b88deb74199573c3b5
No description
14 Replies
Percy
Percy•6mo ago
Project ID: c207599b-3c2b-4bfd-8fb9-f84d3e9be004
alansinthb
alansinthb•6mo ago
c207599b-3c2b-4bfd-8fb9-f84d3e9be004
alansinthb
alansinthb•5mo ago
Those are the build logs
alansinthb
alansinthb•5mo ago
If I remove the nixpack variables from the environment, the build happens without problems NIXPACKS_BUILD_CMD=php artisan optimize && php artisan config:cache && php artisan route:cache && php migrate --force
Brody
Brody•5mo ago
from your logs
Could not open input file: migrate
Could not open input file: migrate
alansinthb
alansinthb•5mo ago
Why is this happening? my previous project that was working very well, now when I deploy I get the same error
Brody
Brody•5mo ago
php migrate --force is not a valid command
alansinthb
alansinthb•5mo ago
So, should I remove the command? How would my database be migrated? automatically?
Brody
Brody•5mo ago
you would need to provide the correct command to migrate your database preferably one that doesnt use force, railway is not responsible for any data loss caused by the user what so ever
alansinthb
alansinthb•5mo ago
I removed the complete command and it worked, but I have no data in my database because it was not migrated, if I leave the command "php artisan migrate" does not work for me and that is the correct command ?
Brody
Brody•5mo ago
"does not work" is not very informative, please include actual error messages
alansinthb
alansinthb•5mo ago
There is no error message, but I need a command to run the migrations and "php artisan migrate" doesn't work 🫠
Brody
Brody•5mo ago
here you are trying to run php migrate --force did you perhaps mean to put php artisan migrate there instead?