bryangruneberg/laragoon
Composer 安装命令:
composer require bryangruneberg/laragoon
包简介
The Laragoon utility package
README 文档
README
Introduction
This package provides a simple way to run a Laravel app on the wonderful amazee.io Lagoon infrastructure.
The package consists of a few components:
- Several Dockerfiles to run a basic Laravel app
- A set of default configuration overrides for the containers
- A console command that dumps the database stanza to enable a connection to the Lagoon database container
- A console command that will update your .lagoon.yml and docker-compose.yml with a project name you provide
- A service provider which
- Makes the Dockerfiles, the configuration files, and severl supporting files publishable
- Looks for a Lagoon environment and overloads an environment specific config file if found
Requirements
This package is supported on Laravel 5.5 and above.
It is assumed that you have amazee.io's Lagoon requirements already installed. See http://lagoon.rtfd.io/ for details.
It is assumed that you have a Laravel app already running.
Installation
composer require bryangruneberg/laragoon
Configuration
To publish the laragoon configuration run:
php artisan vendor:publish --tag=laragoon-config
To publish the laragoon database configuration run:
php artisan vendor:publish --tag=laragoon-db-config. But be careful, the /config/database.php that comes with Laravel will prevent
the laragoon configuration from writing. You can choose to force the operation by appending the --force option to the command.
Alternatively run php artisan laragoon:db-config to have a database stanza outputted to the console.
To publish Docker and Lagoon files for php-7.1 run: php artisan vendor:publish --tag=laragoon-lagoon-php-7.1
To publish Docker and Lagoon files for php-7.2 run: php artisan vendor:publish --tag=laragoon-lagoon-php-7.2
To publish Docker and Lagoon files for php-7.3 run: php artisan vendor:publish --tag=laragoon-lagoon-php-7.3
To publish Docker and Lagoon files for php-7.4 run: php artisan vendor:publish --tag=laragoon-lagoon-php-7.4
To publish helpful artisan scripts run: php artisan vendor:publish --tag=laragoon-scripts
Finally, to set your Lagoon project name, run php artisan laragoon:set-project-name and follow the prompts.
You can go ahead and customize the Dockerfiles, .lagoon.yml, and docker-compose.yml. If you want to retrieve the original files, you can rerun the vendor:publish commands, appending the --force option to force an overwrite.
Running
Once configured, you can run docker-compose build to have docker-compose build your environment. Once built you
can run docker-compose up to have the environment spin up. Append the -d flag to have the containers run in the
background.
bryangruneberg/laragoon 适用场景与选型建议
bryangruneberg/laragoon 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 9.3k 次下载、GitHub Stars 达 8, 最近一次更新时间为 2018 年 07 月 21 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「deploy」 「console」 「laravel」 「devops」 「docker」 「amazee」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 bryangruneberg/laragoon 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 bryangruneberg/laragoon 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 bryangruneberg/laragoon 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
This class provides you with an easy-to-use interface to progress bars.
A Laravel package to retrieve data from Google Search Console
Additional artisan commands for Laravel
blueways deployer recipes
A Highly Opinionated Symfony3/4 Deployer Recipe
A table generator class for the PHP CLI.
统计信息
- 总下载量: 9.3k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 8
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2018-07-21