Last active
April 18, 2019 12:07
-
-
Save ZAYEC77/ae12559d42dfea77d92f84cfc4f5d266 to your computer and use it in GitHub Desktop.
Magento Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
db-name?=m2 | |
db-host?=localhost | |
db-port?=3306 | |
run: | |
php -S 127.0.0.1:80 -t ./pub/ ./phpserver/router.php | |
repl: | |
n98-magerun2.phar dev:console | |
homefy: | |
bin/magento config:set web/unsecure/base_url http://localhost/ && \ | |
bin/magento config:set web/secure/base_url http://localhost/ && \ | |
bin/magento admin:user:create --admin-user admin --admin-password q1w2e3r4 --admin-email admin@test.com \ | |
--admin-firstname Dmytro --admin-lastname Karpovych | |
db-create: | |
mysql -h $(db-host) -P $(db-port) -u root -p -e 'CREATE SCHEMA `$(db-name)` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;' | |
install: | |
php bin/magento setup:install --backend-frontname="admin" \ | |
--session-save="files" --db-host="$(db-host)" --db-name="$(db-name)" \ | |
--db-user="root" --db-password="root" --base-url="http://localhost/" \ | |
--base-url-secure="https://localhost/" --admin-user="admin" --admin-password="q1w2e3r4" \ | |
--admin-email="admin@test.com" --admin-firstname="Dmytro" --admin-lastname="Karpovych" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment