Deployer to deploy Laravel

  • by

A robust method of deploying your laravel application to a server. It allows for more complex and large deployments to be deployed without over complex configuration. Also allows you to build in additional commands for your deployment requirements.

Written in PHP and can support other such frameworks out of the box.

https://deployer.org/

Understand the setup:

main folder
– releases
— folders for each release repository which you can choose how many versions are maintained
– shared
— other folders which should remain the same for each deployment
–.env
– current
— symlink to current release in releases folder

Connect to code source and server:
– agent forwarding
– server ssh key for code source

run deployment:
– First deployment will setup the folder structure
– Likely you will have errors as the .env files will not be correct for your application

Leave a Reply

Your email address will not be published. Required fields are marked *