Laravel project won't deploy!
mu7ammadrasul
TRIALOP

a year ago

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?

3 Replies

mu7ammadrasul
TRIALOP

a year ago

Project ID: 64162d2b-3e2c-4af7-9d98-ffc1c645278a


definewater
HOBBY

a year ago

having same issue as you


afbgdev
TRIAL

a year ago

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


Loading...