Skip to content

Instantly share code, notes, and snippets.

@mnshankar
Created April 15, 2014 18:38
Show Gist options
  • Select an option

  • Save mnshankar/10757370 to your computer and use it in GitHub Desktop.

Select an option

Save mnshankar/10757370 to your computer and use it in GitHub Desktop.

Revisions

  1. mnshankar created this gist Apr 15, 2014.
    22 changes: 22 additions & 0 deletions Envoy.blade.php
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,22 @@
    @servers(['web' => '[email protected]'])

    @task('deploy')

    {{--"project" is the name of the project that is being deployed into /var/www/home--}}
    rm -rf /var/www/home/project && mkdir /var/www/home/project

    {{--Navigate to the project folder--}}
    cd /var/www/home/project

    {{--clone the git repo stored in /var/git/project.git. --}}
    {{--Note that project folder must be empty for git clone.. hence the rm -rf and mkdir initially--}}
    {{--/var/git/project.git on this VPS contains our code.. git pushed from dev box--}}
    git clone /var/git/project.git .

    {{--install composer dependencies--}}
    composer install

    {{--migrate databases if required--}}
    php artisan migrate

    @endtask