Explorar o código

Added bin/status to check container status

Mark Shust %!s(int64=6) %!d(string=hai) anos
pai
achega
ac037f1ce0
Modificáronse 2 ficheiros con 3 adicións e 0 borrados
  1. 1 0
      README.md
  2. 2 0
      compose/magento-2/bin/status

+ 1 - 0
README.md

@@ -164,6 +164,7 @@ open https://magento2.test
 - `bin/rootnotty`: Run any CLI command as root with no TTY. Ex `bin/rootnotty chown -R app:app /var/www/html`
 - `bin/setup`: Run the Magento setup process to install Magento from the source code, with optional domain name. Defaults to `magento2.test`. Ex. `bin/setup magento2.test`
 - `bin/start`: Start all containers, good practice to use this instead of `docker-compose up -d`, as it may contain additional helpers.
+- `bin/status`: Check the container status.
 - `bin/stop`: Stop all containers.
 - `bin/xdebug`: Disable or enable Xdebug. Accepts params `disable` (default) or `enable`. Ex. `bin/xdebug enable`
 

+ 2 - 0
compose/magento-2/bin/status

@@ -0,0 +1,2 @@
+#!/bin/bash
+docker-compose ps