Skip to content

Instantly share code, notes, and snippets.

@c7x43t
Created December 15, 2023 13:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save c7x43t/9e86046da1d57cfc16031279cd2e260b to your computer and use it in GitHub Desktop.
Save c7x43t/9e86046da1d57cfc16031279cd2e260b to your computer and use it in GitHub Desktop.
Notes on magento and how to execute commands without memory limit and with debug information.
Essentially:
PHP_MEMORY_LIMIT=-1 php -d memory_limit=-1 -d display_errors=1 -d display_startup_errors=1 bin/magento {command} -vvv
PHP_MEMORY_LIMIT=-1 php -d memory_limit=-1 -d display_errors=1 -d display_startup_errors=1 bin/magento deploy:mode:set production -vvv
PHP_MEMORY_LIMIT=-1 php -d memory_limit=-1 -d display_errors=1 -d display_startup_errors=1 bin/magento indexer:reindex -vvv
PHP_MEMORY_LIMIT=-1 php -d memory_limit=-1 -d display_errors=1 -d display_startup_errors=1 bin/magento deploy:mode:set default -vvv
php bin/magento maintenance:status
php bin/magento maintenance:disable
php bin/magento deploy:mode:set default
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment