Docker build failed Laravel
Im getting this error every time when I treat to publish mi app
context: 103fc8dcdc8c08b88deb74199573c3b5
14 Replies
Project ID:
c207599b-3c2b-4bfd-8fb9-f84d3e9be004
c207599b-3c2b-4bfd-8fb9-f84d3e9be004
full build logs please https://bookmarklets.up.railway.app/log-downloader/
Those are the build logs
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
from your logs
Why is this happening? my previous project that was working very well, now when I deploy I get the same error
php migrate --force
is not a valid commandSo, should I remove the command? How would my database be migrated? automatically?
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
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
?
"does not work" is not very informative, please include actual error messages
There is no error message, but I need a command to run the migrations and "php artisan migrate" doesn't work ðŸ«
here you are trying to run
php migrate --force
did you perhaps mean to put php artisan migrate
there instead?