Skip to content

Instantly share code, notes, and snippets.

@alysdal
Created November 10, 2016 11:31
Show Gist options
  • Save alysdal/4f233d926992dab7364a48bd93398975 to your computer and use it in GitHub Desktop.
Save alysdal/4f233d926992dab7364a48bd93398975 to your computer and use it in GitHub Desktop.
A pullhook script for laravel installations
<pre>
<?php
// remember to rename the file to a random string to prevent abuse
system('cd .. && git pull && composer install && php artisan migrate --force');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment