画饼 deployer
This commit is contained in:
parent
b33643ee18
commit
c6a10b962f
@ -40,6 +40,7 @@
|
||||
},
|
||||
"require-dev": {
|
||||
"beyondcode/laravel-query-detector": "^1.6",
|
||||
"deployer/deployer": "^7.1",
|
||||
"fakerphp/faker": "^1.9.1",
|
||||
"jetbrains/phpstorm-attributes": "^1.0",
|
||||
"laravel-lang/attributes": "^2.1",
|
||||
|
51
composer.lock
generated
51
composer.lock
generated
@ -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": "19a1f14b2bbf08e0615ed948d4f6ddd2",
|
||||
"content-hash": "89324a5dcaa5fd4f44f5abf73f9899a8",
|
||||
"packages": [
|
||||
{
|
||||
"name": "aws/aws-crt-php",
|
||||
@ -9452,6 +9452,55 @@
|
||||
},
|
||||
"time": "2022-02-12T16:23:40+00:00"
|
||||
},
|
||||
{
|
||||
"name": "deployer/deployer",
|
||||
"version": "v7.1.4",
|
||||
"source": {
|
||||
"type": "git",
|
||||
"url": "https://github.com/deployphp/deployer.git",
|
||||
"reference": "c4a80010830d793dc09f55c9d1e211250c3cc335"
|
||||
},
|
||||
"dist": {
|
||||
"type": "zip",
|
||||
"url": "https://api.github.com/repos/deployphp/deployer/zipball/c4a80010830d793dc09f55c9d1e211250c3cc335",
|
||||
"reference": "c4a80010830d793dc09f55c9d1e211250c3cc335",
|
||||
"shasum": "",
|
||||
"mirrors": [
|
||||
{
|
||||
"url": "https://mirrors.aliyun.com/composer/dists/%package%/%reference%.%type%",
|
||||
"preferred": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"bin": [
|
||||
"dep"
|
||||
],
|
||||
"type": "library",
|
||||
"notification-url": "https://packagist.org/downloads/",
|
||||
"license": [
|
||||
"MIT"
|
||||
],
|
||||
"authors": [
|
||||
{
|
||||
"name": "Anton Medvedev",
|
||||
"email": "anton@medv.io"
|
||||
}
|
||||
],
|
||||
"description": "Deployment Tool",
|
||||
"homepage": "https://deployer.org",
|
||||
"support": {
|
||||
"docs": "https://deployer.org/docs",
|
||||
"issues": "https://github.com/deployphp/deployer/issues",
|
||||
"source": "https://github.com/deployphp/deployer"
|
||||
},
|
||||
"funding": [
|
||||
{
|
||||
"url": "https://github.com/sponsors/antonmedv",
|
||||
"type": "github"
|
||||
}
|
||||
],
|
||||
"time": "2023-02-05T20:09:03+00:00"
|
||||
},
|
||||
{
|
||||
"name": "doctrine/instantiator",
|
||||
"version": "1.5.0",
|
||||
|
26
deploy.php
Normal file
26
deploy.php
Normal file
@ -0,0 +1,26 @@
|
||||
<?php
|
||||
namespace Deployer;
|
||||
|
||||
require 'recipe/laravel.php';
|
||||
|
||||
// Config
|
||||
|
||||
try {
|
||||
set('repository', 'git@github.com:EdgeStanding/lae.git');
|
||||
} catch (Exception\Exception $e) {
|
||||
exit($e->getMessage());
|
||||
}
|
||||
|
||||
add('shared_files', []);
|
||||
add('shared_dirs', []);
|
||||
add('writable_dirs', []);
|
||||
|
||||
// Hosts
|
||||
|
||||
host('')
|
||||
->set('remote_user', 'deployer')
|
||||
->set('deploy_path', '~/lae');
|
||||
|
||||
// Hooks
|
||||
|
||||
after('deploy:failed', 'deploy:unlock');
|
Loading…
Reference in New Issue
Block a user