{"id":37232235,"url":"https://github.com/znmin/laravel-deployer","last_synced_at":"2026-01-15T03:48:00.302Z","repository":{"id":57091705,"uuid":"226277417","full_name":"znmin/laravel-deployer","owner":"znmin","description":"laravel 支持 git hook 的自动部署","archived":false,"fork":false,"pushed_at":"2019-12-19T17:31:01.000Z","size":26,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-07-27T08:26:10.369Z","etag":null,"topics":["deployer","laravel"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/znmin.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-12-06T08:07:10.000Z","updated_at":"2019-12-20T06:22:00.000Z","dependencies_parsed_at":"2022-08-22T20:41:00.441Z","dependency_job_id":null,"html_url":"https://github.com/znmin/laravel-deployer","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/znmin/laravel-deployer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znmin%2Flaravel-deployer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znmin%2Flaravel-deployer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znmin%2Flaravel-deployer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znmin%2Flaravel-deployer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/znmin","download_url":"https://codeload.github.com/znmin/laravel-deployer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/znmin%2Flaravel-deployer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28418141,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["deployer","laravel"],"created_at":"2026-01-15T03:47:59.756Z","updated_at":"2026-01-15T03:48:00.272Z","avatar_url":"https://github.com/znmin.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003ch1 align=\"left\"\u003e\u003ca href=\"javascript:void(0);\"\u003eLaravel Deployer\u003c/a\u003e\u003c/h1\u003e\n\n[![Build Status](https://travis-ci.org/znmin/laravel-deployer.svg?branch=master)](https://travis-ci.org/znmin/laravel-deployer)\n![StyleCI build status](https://github.styleci.io/repos/226277417/shield) \n\n## 依赖\n* PHP \u003e= 7.1\n\n## 安装\n```shell\n$ composer require znmin/laravel-deployer\n```\n\ncomposer 安装之后，如果 Laravel 版本 \u003c 5.5，则需要注册服务提供者\n```php\n// config/app.php\n\n'providers' =\u003e [\n    //...\n    Znmin\\LaravelDeployer\\ServiceProvider::class,\n],\n```\n\n发布配置文件\n```shell\n$ php artisan vendor:publish --provider=Znmin\\LaravelDeployer\\ServiceProvider\n```\n\n配置\n```php\n/*\n|--------------------------------------------------------------------------\n| 默认部署驱动\n|--------------------------------------------------------------------------\n|\n| 指定默认的部署驱动\n| 可选择的驱动：expect\n|\n*/\n'default' =\u003e 'expect',\n\n'drives' =\u003e [\n\n    /*\n     * expect 驱动配置\n     */\n    'expect' =\u003e [\n        'username' =\u003e env('DEPLOY_EXPECT_USERNAME', ''),\n        'password' =\u003e env('DEPLOY_EXPECT_PASSWORD', ''),\n        'branch' =\u003e env('DEPLOY_EXPECT_BRANCH', 'master'),\n        'remote' =\u003e 'origin',\n    ],\n],\n```\n\n## 使用\n使用 expect 驱动需在部署服务器安装此命令：\n\nUbuntu\n```shell\n$ apt install expect\n```\n\nCentOS\n```shell\n$ yum install expect\n```\n\n配置码云 webhook\n\n```shell\n码云钩子\nhttps://example.com/git-hook/gitee\n```\n`https://example.com` 替换为真实域名即可\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznmin%2Flaravel-deployer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fznmin%2Flaravel-deployer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fznmin%2Flaravel-deployer/lists"}