Question

How to deploy a laravel nova app using digitalocean apps

I am trying to deploy a laravel nova application using digitalocean apps. I have added the nova username (email used to register on nova.laravel.com) and the nova password (nova license token) as app level environment variable.

When the build runs I get the following error below

Warning from nova.laravel.com: 
[2022-07-21 11:43:25]        
[2022-07-21 11:43:25]        ***************************************************
[2022-07-21 11:43:25]        Unable to find user with the given email address: .
[2022-07-21 11:43:25]        ***************************************************
[2022-07-21 11:43:25]            Failed to download laravel/nova from dist: The 'https://nova.laravel.com/dist/laravel/nova/laravel-nova-f33003b1991491165e8822680e9a827f33c279c5-zip-383f38.zip' URL could not be accessed (HTTP 403): HTTP/2 403 
[2022-07-21 11:43:25]            Now trying to download from source
[2022-07-21 11:43:25]          - Syncing laravel/nova (4.2.1) into cache
[2022-07-21 11:43:27]        
[2022-07-21 11:43:27]        In Git.php line 484:
[2022-07-21 11:43:27]                                                                                       
[2022-07-21 11:43:27]          Failed to execute git clone --mirror -- 'git@github.com:laravel/nova.git' '  
[2022-07-21 11:43:27]          /layers/heroku_php/shim/php/.composer/cache/vcs/git-github.com-laravel-nova  
[2022-07-21 11:43:27]          .git/'

What can I do to fix this?


Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Hi there,

I believe that what you could do in order to avoid manually typing these credentials, you may create a Composer auth.json file while using your license key in place of your password:

composer config http-basic.nova.laravel.com your-nova-account-email@your-domain.com your-license-key

That way the installation on the App platform will be able to use the auth.json file to install the package.

Let me know how it goes.

Best,

Bobby