Error in deployment when using php artisan migrate

agentaldo
PRO

a year ago

If I deploy with these commands everything works

NIXPACKS_BUILD_CMD="composer install && npm install && npm run build --verbose && chmod -R 777 storage/ && chmod -R 777 bootstrap/cache && php artisan config:cache && php artisan storage:link"

but it generates error if I add

php artisan migrate --force --verbose

ERROR: failed to solve: process "/bin/bash -ol pipefail -c composer install && npm install && npm run build --verbose && chmod -R 777 storage/ && chmod -R 777 bootstrap/cache && php artisan config:cache && php artisan storage:link && php artisan migrate --force --verbose" did not complete successfully: exit code: 1

Error: Docker build failed

already checked several times core credentials data and they are fine in the configuration, does anyone have a possible solution?

Solved

1 Replies

a year ago

Looks like you were able to solve this.


Status changed to Solved brody about 1 year ago


Error in deployment when using php artisan migrate - Railway Help Station