Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Latest commit

 

History

History
53 lines (34 loc) · 972 Bytes

README.md

File metadata and controls

53 lines (34 loc) · 972 Bytes

Larry deploy example

This deployer config works with Larry - a LEMP stack. This example is a plain php file, but a Laravel project would work the same.

Uses deployer to deploy to server.

Install deployer

In your terminal run

curl -LO https://deployer.org/deployer.phar
mv deployer.phar /usr/local/bin/dep
chmod +x /usr/local/bin/dep

Now you should be able to run dep, so check which version

dep --version

Prepare to deploy

In deploy.php replace yourdomain.xyz with your domain, and change repo to your own.

...

// Project repository
+set('repository', '[email protected]:youruser/yourproject.git');

...

// Hosts
+host('yourdomain.xyz')
	->user('web')
	->identityFile('~/.ssh/id_rsa')
	->stage('dev')
	->set('branch', 'master')
+	->set('deploy_path', '/var/www/yourdomain.xyz');

// Tasks
desc('Deploy your project');

...

Deploy

Then to deploy, simply run:

dep deploy dev