The following guide shows you the normal development workflow using madock.
madock start
madock composer <command>
madock magento <command>
madock node <command>
madock node grunt exec:<theme>
madock node grunt watch
NOTE: You might also need to disable your browser cache. For example in Chrome:
Open inspector > Settings > Network > Disable cache (while DevTools is open)
-
Enable xdebug
madock debug on
-
Configure xdebug in PHPStorm (Only first time)
-
Disable xdebug when finish
madock debug off
madock help
This command shows you the following items:
-
bash
Connect into container using bash[name of container]
Name of container. Optional. Default container: php. For example: php, node, db, nginx -
c:f
Cleaning up static and generated files -
composer
Execute composer inside php container -
compress
Compress a project to archive -
config
Viewing and changing the project configuration
show
List all project environment settings
set
Set parameters
--hosts
Domains and code of project websites. Separated by commas. For example: one.example.com:base two.example.com:two_code. Optional
-
cron
Enable / disable cronon
Enable cronoff
Disable cron -
db
Database import / export
import
Database import
export
Database export
soft-clean
Soft cleanup of the database from unnecessary garbage.
debug
Enable / disable xdebug
on
Enable xdebug
off
Disable xdebug
-
help
Displays help for commands -
logs
View logs of the container
[name of container]
Container name. Optional. Default container: php. Example: php
-
magento
Execute Magento command inside php container -
node
Execute NodeJs command inside php container -
proxy
Actions on the proxy serverstart
Start a proxy server
stop
Stop a proxy server
restart
Restart a proxy server
rebuild
Rebuild a proxy server
prune
Prune a proxy server
-
prune
Stop and delete running project containers -
rebuild
Recreation of all containers in the project. All containers are re-created and the images from the Dockerfile are rebuilt -
remote
Performing actions on a remote server
sync
Synchronization media, DB, etc.
media
Synchronization media files from remote host
--images-only
Synchronization images only
--compress
Apply lossy compression. Images will have weight equals 30% of original
db
Create and download dump of DB from remote host
-
restart
Restarting all containers and services. Stop all containers and start them again -
setup
Initial the project setup -
ssl
SSL Certificates
rebuild
Rebuild SSL Certificates
-
start
Starting all containers and services -
status
Display the status of the project -
stop
Stopping all containers and services -
uncompress
Uncompress the project from archive