I have added Laravel Nova to our application and purchased a license. On the local server everything works perfectly. However, when I try to deploy the updated application to our linux server and run composer update it says:
Failed to download laravel/nova from dist: /var/www/{myPath} does not exist and could not be created.
Now trying to download from source
Syncing laravel/nova (3.29.0) into cache
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
Head to https://github.com/settings/tokens/new It will be stored in "/var/www/{myPath}"
So I created a GitHub Token and added the Laravel Nova credentials to the auth.json file on the server too. Everything should be correct and it is working on the local copy as I said before. However, I am getting the following errors:
[RuntimeException]
Failed to execute git clone --mirror -- '[email protected]:laravel/nova.git' '/var/www/{myPath}/.cache/composer/vcs/git-github.com-laravel-nova.git/'
Cloning into bare repository '/var/www/{myPath}/.cache/composer/vcs/git-github.com-laravel-nova.git'...
ERROR: Repository not found.
fatal: Could not read from remote repository.
Please make sure you have the correct access rights
and the repository exists.
How could I solve this problem?
composer update
during a deployment? That can lead to different libraries being installed on different systems, and that's something you should avoid at all times – Warmonger/var/www/{myPath} does not exist and could not be created
sounds strange - what have you tried to resolve this? Is that path maybe missing, or is it configured with wrong permissions such that your deployment process cannot write into that path? – Warmongercomposer update
does. The deployment takes place on our public DevServer. {myPath} is just a placeholder for the real path because of privacy reasons. There is nothing wrong with the configuration. It's all about the Laravel Nova resources. – Kings