R
Railway•11mo 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•11mo ago
Project ID: c207599b-3c2b-4bfd-8fb9-f84d3e9be004
alansinthb
alansinthbOP•11mo ago
c207599b-3c2b-4bfd-8fb9-f84d3e9be004
Brody
Brody•11mo ago
alansinthb
alansinthbOP•11mo ago
Those are the build logs
alansinthb
alansinthbOP•11mo 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•11mo ago
from your logs
Could not open input file: migrate
Could not open input file: migrate
alansinthb
alansinthbOP•11mo ago
Why is this happening? my previous project that was working very well, now when I deploy I get the same error
Brody
Brody•11mo ago
php migrate --force is not a valid command
alansinthb
alansinthbOP•11mo ago
So, should I remove the command? How would my database be migrated? automatically?
Brody
Brody•11mo 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
alansinthbOP•11mo 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•11mo ago
"does not work" is not very informative, please include actual error messages
alansinthb
alansinthbOP•11mo ago
There is no error message, but I need a command to run the migrations and "php artisan migrate" doesn't work 🫠
Brody
Brody•11mo ago
here you are trying to run php migrate --force did you perhaps mean to put php artisan migrate there instead?
Want results from more Discord servers?
Add your server