Skip to content

Instantly share code, notes, and snippets.

@antonioribeiro
Last active August 29, 2015 13:56
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save antonioribeiro/8967895 to your computer and use it in GitHub Desktop.
Save antonioribeiro/8967895 to your computer and use it in GitHub Desktop.
Deeployer using Laravel Envoy

Install Deeployer and Envoy.

Create a route in your application for your deployer url:

Route::post('deploy', function() 
{
    return Deeployer::run();
});

Now your just have to create your Envoy tasks using your repository url and branch:

@task('https://github.com/you/repo-name:master', ['on' => ['localhost']])
    touch /tmp/envoy-passthrough.txt
@endtask

That's all!

Configure your webhook, git-add-commit-push something to the remote and wait for it tailing the log:

php artisan tail
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment