jimmygle / homesteader
一个用于自动化的 Laravel Homestead 工具集。
1.0.1
2015-03-15 05:35 UTC
Requires
- php: >=5.5
- symfony/console: ~2.0
- symfony/yaml: ~2.6.4
Requires (Dev)
- mikey179/vfsstream: ~1
- phpunit/phpunit: 4.7.*@dev
This package is not auto-updated.
Last update: 2024-09-28 17:02:11 UTC
README
Homesteader 是一个以自动化为目的的 composer 包。它旨在简化与 Homestead 相关的工作流程,包括一套用于操作 Homestead 配置文件的命令。将来,它将协助更新主机机的 hosts 文件、自动重新配置以及为单个项目(如 Homestead 的 composer.json)提供完全自动化的脚本。
原因
Homestead 是利用虚拟化工具的绝佳例子。但是,在团队环境中使用时,越少的步骤来设置开发环境越好。因此,这个包试图使 homestead 的工作流程比现在更加简化。最终目标是提供一个与项目一起的 "homesteader" 配置文件,并使用一条命令设置本地的 Homestead 环境。
安装
composer global require "jimmygle/homesteader=~1.0"
使用
以下命令代表当前的功能。
Homestead 配置操作
全局选项
--file (-f) [path/to/Homestead.yaml]
- 自定义 homestead 配置文件路径--no-interaction (-n)
- 无交互运行(某些特定命令的选项可能需要)
输出当前 homestead 配置
homesteader config:show
添加新的文件夹集合
homesteader config:new folder [--host /path/on/local] [--homestead /path/in/homestead]
添加新的站点集合
homesteader config:new site [--domain example.local] [--homestead /path/in/homestead/public]
添加新的数据库
homesteader config:new database [--name example_db]
添加新的变量集合
homesteader config:new variable [--key VAR] [--value test]