/** * Runs the steps needed to setup shopware * * @param $branch * @param string $installDir * @param $basePath * @param $database * @param null $httpUser * @param bool $noDemoData */ public function installShopware($branch, $installDir, $basePath, $database, $httpUser = null, $noDemoData = false) { $this->checkoutRepos($branch, $installDir, $httpUser); $this->generateVcsMapping($installDir); $this->writeBuildProperties($installDir, $basePath, $database); $this->setupDatabase($installDir, $database); $this->demoData->runLicenseImport($installDir); if (!$noDemoData) { $this->demoData->setup($installDir); } $this->ioService->writeln("<info>Running post release scripts</info>"); $this->postInstall->fixPermissions($installDir); $this->postInstall->importCustomDeltas($database); $this->postInstall->runCustomScripts($installDir); $this->postInstall->fixShopHost($database); $this->ioService->writeln("<info>Install completed</info>"); }
/** * @param InstallationRequest $request */ public function installShopware(InstallationRequest $request) { $this->generateVcsMapping($request->installDir); $this->writeShopwareConfig($request->installDir, $request->databaseName); $this->setupDatabase($request); $this->lockInstaller($request->installDir); $this->ioService->writeln("<info>Running post release scripts</info>"); $this->postInstall->fixPermissions($request->installDir); $this->postInstall->setupTheme($request->installDir); $this->postInstall->importCustomDeltas($request->databaseName); $this->postInstall->runCustomScripts($request->installDir); $this->demodata->runLicenseImport($request->installDir); $this->ioService->writeln("<info>Install completed</info>"); }
/** * @param InstallationRequest $request */ public function installShopware(InstallationRequest $request) { $this->releaseDownloader->downloadRelease($request->getRelease(), $request->getInstallDir()); if ($request->getRelease() === 'latest' || version_compare($request->getRelease(), '5.1.2', '>=')) { $this->createDatabase($request); $this->createShopwareConfig($request); $this->runInstaller($request); } else { $this->generateVcsMapping($request->getAbsoluteInstallDir()); $this->createShopwareConfig($request); $this->setupDatabase($request); $this->lockInstaller($request->getAbsoluteInstallDir()); } $this->ioService->writeln("<info>Running post release scripts</info>"); $this->postInstall->fixPermissions($request->getAbsoluteInstallDir()); $this->postInstall->setupTheme($request->getAbsoluteInstallDir()); $this->postInstall->importCustomDeltas($request->getDbName()); $this->postInstall->runCustomScripts($request->getAbsoluteInstallDir()); $this->demodata->runLicenseImport($request->getAbsoluteInstallDir()); $this->ioService->writeln("<info>Install completed</info>"); }