amayer5125/galley 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

amayer5125/galley

最新稳定版本:1.5.0

Composer 安装命令:

composer require amayer5125/galley

包简介

Simple Docker dev environments for CakePHP

README 文档

README

Provides a small Docker dev environment for CakePHP development.

Introduction

Galley provides a Docker powered local development experience for CakePHP that is compatible with macOS, Windows (WSL2), and Linux. Other than Docker, no software or libraries are required to be installed on your local computer before using Galley. Galley's simple CLI means you can start building your CakePHP application without any previous Docker experience.

Inspiration

Galley is inspired by and derived from Vessel by Chris Fidao as well as Laravel Sail. If you're looking for a thorough introduction to Docker, check out Chris' course: Shipping Docker.

Installation

You can install this plugin into your CakePHP application using composer.

The recommended way to install composer packages is:

composer require --dev amayer5125/galley

Next load the plugin in your src/Application.php file.

$this->addOptionalPlugin('Galley');

After you have the plugin installed you can initalize Galley by running the following:

bin/cake galley install

This will create a docker-compose.yml file in your project's root directory. After following the directions output by the command, you can start your application by running:

vendor/bin/galley up -d

Head to http://localhost in your browser and see your CakePHP site!

Optional Setup

Instead of repeatedly typing vendor/bin/galley to execute Galley commands, you may wish to configure a Bash or ZSH alias that allows you to execute Galley's commands more easily:

alias galley="vendor/bin/galley"

Usage

To get a list of supported commands and examples run:

vendor/bin/galley --help

Xdebug Support

Galley comes with Xdebug support out of the box. To enable it create a file named docker-compose.override.yml in the root of your project with the following contents:

services:
  app:
    environment:
      XDEBUG_MODE: "debug,develop"
    extra_hosts:
      - "host.docker.internal:host-gateway"

After creating the file run galley up -d. Xdebug should now be enabled.

Make sure the docker-compose.override.yml file is ignored from git.

统计信息

  • 总下载量: 8.46k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 0
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-16