Ver código fonte

Added bin/status to check container status

Mark Shust 6 anos atrás
pai
commit
ac037f1ce0
2 arquivos alterados com 3 adições e 0 exclusões
  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