Laravel project won't deploy!

Hi, i have deployed my laravel app on railway and the only thing i have done is i have added the following line in variables NIXPACKS_BUILD_CMD="composer install && php artisan optimize:clear && php artisan storage:link && php artisan migrate --force" but i get an error saying ERROR: failed to solve: process "/bin/bash -ol pipefail -c composer install --ignore-platform-reqs" did not complete successfully: exit code: 1 what could be the issue?
4 Replies
Percy
Percy2mo ago
Project ID: 64162d2b-3e2c-4af7-9d98-ffc1c645278a
MoeRasul
MoeRasulOP2mo ago
Project ID: 64162d2b-3e2c-4af7-9d98-ffc1c645278a
Faith
Faith4w ago
having same issue as you
Duchess
Duchess21h ago
New reply sent from Help Station thread:
Hi,This error means that there is an error when runs "composer install" command. It should be regardless with a composer.json error. Try these in local:1. Remove the "vendor" folder.2. Run "composer install"If you have an error after these steps, you should see the error couse in console. Then you can try to fix the "composer install" error and it should be works for the deploy
You're seeing this because this thread has been automatically linked to the Help Station thread.
Want results from more Discord servers?
Add your server