Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

feralheart's avatar

'Deploy' error

Hi all!

I wanted to 'deploy' my first app to my Raspberry. I pushed in to a bare repository and cloned to the RPI, but I got Apache 403 error. But If I copy the project directory through Filezilla it works perfectly.

Why?

0 likes
2 replies
tekmi's avatar

@feralheart

If you use Filezilla and copy your project directory, you most probably also copy your vendor directory, where Laravel and other dependencies usually reside.

Please double check if vendor directory is not empty, while you cast git clone command. It should be, therefore you usually run composer install on your deployment server/machine.

Nash's avatar

A git repository? Have you installed the dependencies on your pi by doing composer install after git clone? The dependencies are ignored by default, so they won't get pushed to your repo.

Likewise, if you are using NPM in your project, you also need to do npm install (and npm run production etc.)

The .env file is also ignored, so make sure it exists and has the correct values set up on your pi.

Please or to participate in this conversation.