This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
namespace App\Console\Commands; | |
use Illuminate\Support\Composer; | |
use Illuminate\Filesystem\Filesystem; | |
use Illuminate\Console\GeneratorCommand; | |
use Symfony\Component\Console\Input\InputOption; | |
use Symfony\Component\Console\Input\InputArgument; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
# make sure and old installation file is not present | |
rm linux64 | |
# download the latest version for a 64bit system | |
wget https://dl.pstmn.io/download/latest/linux64 | |
# extract the downloaded file | |
tar -xzf linux64 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@servers(['web' => ['deployment-server@server-ip-address']]) | |
@task('production', ['on' => 'web']) | |
cd /path/to/your/project/on/server | |
git checkout origin master | |
git pull origin master | |
composer install | |
php artisan migrate --force | |
php artisan optimize | |
chown -R USER:GROUP . |