此包已被弃用且不再维护。作者建议使用 drudock/cli 包。

DruDock Cli

安装: 135

依赖者: 0

建议者: 0

安全: 0

星级: 2

关注者: 4

分支: 1

开放问题: 35

类型:项目

1.4-alpha1.0.12 2018-09-12 07:12 UTC

README

DruDock Logo

DruDock 是基于 Docker 的 Drupal 网站或 PHP 应用程序的开发、预发布和生产环境。

Latest Stable Version License composer.lock

Build Status Gitter

DruDock-Cli - BETA

DruDock 的 CLI 工具

安装和设置 Docker

最低要求

  • 主机操作系统必须安装 PHP ^5.6

有疑问?

Twitter 上联系我

文档 - @待办

阅读更多 - http://drudockcli.readthedocs.io/en/latest/

通过 .phar 安装

  • 全局安装 DruDock。

curl -O http://d1gem705zq3obi.cloudfront.net/drudock.phar && \
mv drudock.phar /usr/local/bin/drudock && \
chmod +x /usr/local/bin/drudock && \
drudock

状态

初始命令结构

  Available commands:
    help                   Displays help for a command
    list                   Lists commands
   app
    app:bash               [ab] Bash into container
    app:build              [ab] Fetch and build App containers and resources.
    app:destroy            [ad] Disable and delete APP and containers
    app:exec               [ae] Execute bespoke commands at :container
    app:init               [ai] Fetch and build DruDock containers
    app:init:build         [aib] Initialize environment and run build.
    app:init:containers    [aic] Create APP containers
    app:open               [ao] Open APP in default browser.
    app:restart            [ar] Restart current APP containers
    app:ssh                [assh] SSH into Apps PHP container.
    app:start              [start] Start current APP containers
    app:status             [as] Get current status of all containers
    app:stop               [stop] Stop current APP containers
    app:update:config      [aucg] Update APP config
    app:update:containers  [auct] Update APP containers
    app:update:services    [aus] Update APP services
   behat
    behat:cmd              Run behat commands
    behat:monitor          Launch behat VNC viewer
    behat:status           Runs example command against running APP and current config
   drush
    drush:cc               [dcc] Run drush cache clear
    drush:cex              [dcex] Run drush config-export
    drush:cim              [dcim] Run drush config-import
    drush:dis              [dd] Disable/Uninstall Drupal module
    drush:en               [de] Enable Drupal module
    drush:init:config      [dicg] Run drush config init
    drush:rr               [drr] Run drush registry rebuild
    drush:uli              [duli] Run Drush ULI
    drush:updb             [dudb] Run Drush updb
   mysql
    mysql:export           Export .sql files
    mysql:import           Import .sql files
    mysql:log              Monitor mysql activity
   nginx
    nginx:flush            Flush nginx cache
    nginx:log              Monitor nginx activity
    nginx:proxy:start      Start nginx proxy
    nginx:proxy:stop       Stop nginx proxy
    nginx:reload           Reload nginx activity
    nginx:sethost          Add nginx host to DD and host OS
   prod
    prod:update            Rebuild app and deploy latest code into app containers
   redis
    redis:flush            Flush Redis cache
    redis:info             Get Redis running config information
    redis:monitor          Monitor redis activity
    redis:ping             Ping Redis
   self
    self:about             [about] About DruDock
    self:update            [su] Update Drudock version to latest released version.

       

示例命令

      --------------
      :$ drudock app:init --appname defaultapp --type DEFAULT --dist Development --src New --apphost drudock.localhost --services "PHP,NGINX,MYSQL"
      :$ cd my-great-app && drudock build:init
      --------------

开发 Drupal 8

      --------------
      :$ drudock app:init:build --appname my-app --type D8 --dist Development --src New --apphost drudock.localhost --services "PHP,NGINX,MYSQL"
      :$ cd my-drupal8-site && drudock build:init
      --------------

开发 Drupal 7

      --------------
      :$ drudock app:init:build --appname my-app --type D7 --dist Development --src New --apphost drudock.localhost --services "PHP,NGINX,MYSQL"
      :$ cd my-drupal7-site && drudock build:init
      --------------

下一步

  • 更多实用命令和用户反馈。更多信息请参阅 路线图

已知问题

  1. 尚未完成 - 仍处于 alpha 阶段,需要社区测试和反馈。