u-deploy / taxi
Laravel Valet 的多仓库管理器
Requires
- php: ^8.0
- guzzlehttp/guzzle: ^7.5
- illuminate/collections: ^8.0|^9.0|^10.5
- illuminate/support: ^8.0|^9.0|^10.5
- laravel/valet: ^4.0
- opis/json-schema: ^2.3
- symfony/process: ^5.0|^6.0
Requires (Dev)
- laravel/pint: ^1.7
- mockery/mockery: ^1.5
- yoast/phpunit-polyfills: ^0.2.0
This package is auto-updated.
Last update: 2024-09-28 00:24:17 UTC
README
简介
A multi-site manager for Laravel Valet. Easily manage local deployments of multiple web applications, for easier developer startup. Quickly reset site managed by uDeploy Taxi, stashing changes as needed to bring all sites up to date fast, ideal for QA and local Testers.
开始使用
先决条件
This application requires Laravel Valet to be installed.
首先通过 composer 安装;
composer global require u-deploy/taxi
确保 ~/.composer/vendor/bin
在你的 PATH 中。
然后运行
taxi install
为了运行某些命令(如 Valet),需要 sudo。运行此命令将 taxi 添加到 sudoer 文件。
taxi trust
如果您希望取消此权限,请运行: taxi trust --off
开始使用 Taxi。
- 在空目录中生成 taxi.json 文件。
运行此命令
taxi call
将在当前目录中放置一个示例 taxi.json 文件。
- 使用托管在任何地方的现有 taxi.json 文件。
taxi call https://raw.githubusercontent.com/u-deploy/taxi/main/cli/stubs/taxi.json
将下载 taxi.json 文件到当前目录。
构建
一旦在目录中拥有 taxi.json 文件并为您设置好,您就可以运行
taxi build
这将克隆 taxi.json 文件中列出的仓库以及定义的任何构建命令。网站将自动与 Laravel Valet 链接,并隔离 PHP 版本(如果已设置)并启用 https(安全)。
构建成功后,您就可以开始使用您的互连应用程序了。
重置
非常适合 QA 或测试人员,或者可能是针对本地开发的常规重置。运行;
taxi reset
将任何在 taxi.json 中列出的仓库重置为其定义的默认分支。任何未提交的更改将被暂存。然后运行重置命令,如果需要重新编译资源,这非常理想。
命令
以下是所有可用命令的完整列表
taxi list
列出 Taxi 可用的所有命令
taxi install
本地安装 taxi,这将在您的用户 bin 中创建一个符号链接。
taxi trust
将 taxi 添加到 sudoers,以便可以静默运行命令。
taxi trust --off
从 sudoers 中删除 taxi。
taxi call
在当前目录中生成示例 taxi.json 文件。
taxi call https://gist.githubusercontent.com/RichardStyles/5f7f0c1b464aa33c2ac178807cf8e906/raw/dacbeaf9cc3baad04ec649271b9d5d9a579718ce/taxi-example.json
从外部站点或存储库拉取 taxi.json 配置。
taxi build
下载所有网站并运行关联的命令,首先运行构建挂钩,然后运行特定于网站的构建后命令。
taxi reset
将所有网站重置为其默认分支,暂存更改。然后运行重置挂钩,然后运行特定于网站的重置后命令。
taxi valet
列出所有 Laravel Valet 网站,包括如果使用它们的 taxi.json 配置文件
许可
uDeploy Taxi 是开源软件,许可证为 MIT 许可。