diff --git a/Envoy.blade.php b/Envoy.blade.php new file mode 100644 index 0000000..ff964f6 --- /dev/null +++ b/Envoy.blade.php @@ -0,0 +1,13 @@ +@servers(['staging' => '', 'production' => '']) + +@task('staging-deployment') + php artisan down + git pull origin main + composer install --no-ansi --no-interaction --no-scripts --no-progress --prefer-dist --optimize-autoloader + composer dump-autoload + php artisan migrate + php artisan optimize:clear + php artisan up +@endtask + + diff --git a/composer.json b/composer.json index e3380fd..6bcea66 100644 --- a/composer.json +++ b/composer.json @@ -18,6 +18,7 @@ "require-dev": { "fakerphp/faker": "^1.9.1", "laravel/breeze": "^1.21", + "laravel/envoy": "^2.8", "laravel/pint": "^1.0", "laravel/sail": "^1.18", "mockery/mockery": "^1.4.4", diff --git a/composer.lock b/composer.lock index 94ff675..704519e 100644 --- a/composer.lock +++ b/composer.lock @@ -4,7 +4,7 @@ "Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies", "This file is @generated automatically" ], - "content-hash": "c86a9f64d4bfbdaa90f064b7db116663", + "content-hash": "957486970678d3071ca25fd6734d5bc2", "packages": [ { "name": "brick/math", @@ -6299,6 +6299,68 @@ }, "time": "2023-06-16T21:23:43+00:00" }, + { + "name": "laravel/envoy", + "version": "v2.8.6", + "source": { + "type": "git", + "url": "https://github.com/laravel/envoy.git", + "reference": "24d2405dc785649684ccf531fddd2ac1f58ec861" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/envoy/zipball/24d2405dc785649684ccf531fddd2ac1f58ec861", + "reference": "24d2405dc785649684ccf531fddd2ac1f58ec861", + "shasum": "" + }, + "require": { + "guzzlehttp/guzzle": "^6.0|^7.0", + "illuminate/support": "^6.0|^7.0|^8.0|^9.0|^10.0", + "php": "^7.2|^8.0", + "symfony/console": "^4.3|^5.0|^6.0", + "symfony/process": "^4.3|^5.0|^6.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.0|^9.0" + }, + "suggest": { + "ext-posix": "Required to determine the System user on Unix systems." + }, + "bin": [ + "bin/envoy" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Envoy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Elegant SSH tasks for PHP.", + "keywords": [ + "laravel", + "ssh" + ], + "support": { + "issues": "https://github.com/laravel/envoy/issues", + "source": "https://github.com/laravel/envoy/tree/v2.8.6" + }, + "time": "2023-01-10T19:27:26+00:00" + }, { "name": "laravel/pint", "version": "v1.10.3",