| @@ 62-92 (lines=31) @@ | ||
| 59 | * @param $projectPath |
|
| 60 | * @param OutputInterface $output |
|
| 61 | */ |
|
| 62 | protected function installMagento(array $options, $projectPath, OutputInterface $output) |
|
| 63 | { |
|
| 64 | $this->setPermissions($projectPath, $output); |
|
| 65 | ||
| 66 | $output->writeln('<info>Installing Magento 2 Software</info>'); |
|
| 67 | $locale = $options['magestead']['apps']['mba_12345']['locale']; |
|
| 68 | $db_name = $options['magestead']['apps']['mba_12345']['db_name']; |
|
| 69 | $base_url = $options['magestead']['apps']['mba_12345']['base_url']; |
|
| 70 | $default_currency = $options['magestead']['apps']['mba_12345']['default_currency']; |
|
| 71 | ||
| 72 | $install = 'vagrant ssh -c \'cd /var/www/public; bin/magento setup:install --base-url=http://'.$base_url.'/ \ |
|
| 73 | --db-host=localhost \ |
|
| 74 | --db-name='.$db_name.' \ |
|
| 75 | --db-user=magestead \ |
|
| 76 | --db-password=vagrant \ |
|
| 77 | --admin-firstname=RichDynamix \ |
|
| 78 | --admin-lastname=Magestead \ |
|
| 79 | [email protected] \ |
|
| 80 | --admin-user=admin \ |
|
| 81 | --admin-password=password123 \ |
|
| 82 | --language='.$locale.' \ |
|
| 83 | --currency='.$default_currency.' \ |
|
| 84 | --timezone=Europe/London \ |
|
| 85 | --use-rewrites=1 \ |
|
| 86 | --backend-frontname=admin \ |
|
| 87 | --session-save=db \''; |
|
| 88 | ||
| 89 | new ProcessCommand($install, $projectPath, $output); |
|
| 90 | ||
| 91 | $this->configureRedis($projectPath, $output); |
|
| 92 | } |
|
| 93 | ||
| 94 | /** |
|
| 95 | * @param $projectPath |
|
| @@ 39-73 (lines=35) @@ | ||
| 36 | * @param $projectPath |
|
| 37 | * @param $output |
|
| 38 | */ |
|
| 39 | protected function installMagento(array $options, $projectPath, OutputInterface $output) |
|
| 40 | { |
|
| 41 | $locale = $options['magestead']['apps']['mba_12345']['locale']; |
|
| 42 | $db_name = $options['magestead']['apps']['mba_12345']['db_name']; |
|
| 43 | $base_url = $options['magestead']['apps']['mba_12345']['base_url']; |
|
| 44 | $default_currency = $options['magestead']['apps']['mba_12345']['default_currency']; |
|
| 45 | ||
| 46 | $install = 'vagrant ssh -c \'cd /var/www/public; php -f install.php -- \ |
|
| 47 | --license_agreement_accepted "yes" \ |
|
| 48 | --locale "' . $locale . '" \ |
|
| 49 | --timezone "Europe/London" \ |
|
| 50 | --default_currency "' . $default_currency . '" \ |
|
| 51 | --db_host "localhost" \ |
|
| 52 | --db_name "' . $db_name . '" \ |
|
| 53 | --db_user "magestead" \ |
|
| 54 | --db_pass "vagrant" \ |
|
| 55 | --session_save "db" \ |
|
| 56 | --url "http://' . $base_url . '/" \ |
|
| 57 | --use_rewrites "yes" \ |
|
| 58 | --skip_url_validation "yes" \ |
|
| 59 | --use_secure "no" \ |
|
| 60 | --use_secure_admin "no" \ |
|
| 61 | --secure_base_url "http://' . $base_url . '/" \ |
|
| 62 | --admin_firstname "RichDynamix" \ |
|
| 63 | --admin_lastname "Magestead" \ |
|
| 64 | --admin_email "[email protected]" \ |
|
| 65 | --admin_username "admin" \ |
|
| 66 | --admin_password "password123"\' '; |
|
| 67 | ||
| 68 | new ProcessCommand($install, $projectPath, $output); |
|
| 69 | ||
| 70 | $this->configureRedis($projectPath); |
|
| 71 | $this->setPermissions($projectPath, $output); |
|
| 72 | $this->installMagerun($projectPath, $output); |
|
| 73 | } |
|
| 74 | ||
| 75 | /** |
|
| 76 | * @param $projectPath |
|