->
addOption('shop-currency', null, InputOption::VALUE_REQUIRED, 'Iso code for the default currency of the shop'
) ->
addOption('skip-jwt-keys-generation', null, InputOption::VALUE_NONE, 'Skips generation of jwt private and public key'
) ->
addOption('skip-assets-install', null, InputOption::VALUE_NONE, 'Skips installing of assets'
) ;
} protected function execute(InputInterface
$input, OutputInterface
$output): int
{ $output =
new ShopwareStyle($input,
$output);
// set default
$isBlueGreen = EnvironmentHelper::
getVariable('BLUE_GREEN_DEPLOYMENT', '1'
);
$_ENV['BLUE_GREEN_DEPLOYMENT'
] =
$_SERVER['BLUE_GREEN_DEPLOYMENT'
] =
$isBlueGreen;
putenv('BLUE_GREEN_DEPLOYMENT=' .
$isBlueGreen);
if (!
$input->
getOption('force'
) &&
file_exists($this->projectDir . '/install.lock'
)) { $output->
comment('install.lock already exists. Delete it or pass --force to do it anyway.'
);
return self::FAILURE;
} $this->
initializeDatabase($output,
$input);