Created
September 25, 2018 09:42
-
-
Save Stepa4man/a8ccb1919f8d5cdd47f9c694da58dc9b to your computer and use it in GitHub Desktop.
Install new project
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
#!/bin/sh | |
echo Please provide git repo: | |
read git | |
echo Please provide url name: | |
read name | |
echo Please provide db name: | |
read dbname | |
git clone $git; | |
mv nestler-matho $name; | |
cd $name; | |
git checkout develop; | |
composer install; | |
mysql -u root -h 127.0.0.1 -e "CREATE DATABASE $dbname"; | |
php bin/magento setup:install \ | |
--base-url=http://$name.loc/ \ | |
--base-url-secure=https://$name.loc/ \ | |
--db-host=127.0.0.1 \ | |
--db-user=root \ | |
--db-name=$dbname \ | |
--admin-firstname=Stepan \ | |
--admin-lastname=Furman \ | |
--admin-email=s.furman@ping247.de \ | |
--admin-user=admin \ | |
--admin-password=admin123 \ | |
--backend-frontname=admin \ | |
--language=de_DE \ | |
--currency=EUR \ | |
--timezone=Europe/Berlin \ | |
--session-save=db \ | |
--use-secure-admin=0 \ | |
--use-secure=0 \ | |
--cleanup-database \ | |
--use-rewrites=1 | |
php bin/magento config:set 'admin/startup/menu_item_id' 'Magento_Config::system_config'; | |
php bin/magento config:set 'admin/security/session_lifetime' 31536000; | |
php bin/magento cache:disable && | |
php bin/magento cache:enable config; | |
php bin/magento cache:clean; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment