Skip to content

Instantly share code, notes, and snippets.

@mhhansen
Last active June 28, 2017 13:18
Show Gist options
  • Save mhhansen/e08eae0327a84804c0db8d137bcfc38d to your computer and use it in GitHub Desktop.
Save mhhansen/e08eae0327a84804c0db8d137bcfc38d to your computer and use it in GitHub Desktop.
Magento 2 pinned commands
# Magento 2 install common tasks
# alias
nano ~/.bash_profile
alias mage='php bin/magento'
# git ignore filemode changes
git config core.filemode false
# other git global configs
git config --global core.ignorecase false
git config --global rerere.enabled 1
git config --global rerere.autoupdate true
# install command
bin/magento setup:install --admin-firstname=Magento --admin-lastname=Administrador --admin-email=admin@admin.adm --admin-user=admin --admin-password=password123 --base-url=http://local.domain.com/ --db-host=localhost --db-name=test --db-user=test --db-password=test --language=es_AR --currency=ARS --timezone=America/Argentina/Buenos_Aires --use-rewrites=1
bin/magento setup:upgrade
bin/magento deploy:mode:set developer
bin/magento setup:di:compile
# fix local permissions
find . -type f -exec chmod 664 {} \;
find . -type d -exec chmod 775 {} \;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment