a month ago
I'm trying to deploy a Laravel app (directly from Git repo using Railpack) that uses Laravel Nova. Currently the composer install step is failing because the repo with Laravel Nova requires authentication and this fails. Locally I have an auth.json file with the credentials in but I don't want to add this to my Git repo. I have tried adding a build command like this echo { \"http-basic\": { \"nova.laravel.com\": { \"username\": \"$NOVA_USERNAME\", \"password\": \"$NOVA_LICENSE_KEY\" } } } > auth.json but whatever directory I try to output this file to it doesn't have any effect. I'm not sure if it's failing because I've not got the correct location, the environment variables are not available at this point, or if there is something else going on. Does anyone know how I might be able to get this to work?
2 Replies
even including the auth.json file in the repo doesn't seem to solve this. I guess it's not getting copied to wherever composer install is being run from
Found the solution - put the contents of the auth.json file in a COMPOSER_AUTH variable.
Status changed to Solved angelo-railway • 30 days ago