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

An example deploy of a basic php-project to Larry, the LEMP stack.

Notifications You must be signed in to change notification settings

ludviglundgren/larry-deploy-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

An example deploy of a basic php-project to Larry, the LEMP stack.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages