This is the process I use for deploying a Laravel application to Bitbucket. Once I setup the Debian server with Caddy and PHP-FPM it is usually ready to go.
- Install Caddy
- Install PHP-FPM
mkdir -p /var/builds/staging.example.com && mkdir -p /var/www- Create
.envandstoragefolder in/var/builds/staging.example.com