production icon indicating copy to clipboard operation
production copied to clipboard

more options for system:install --basic-setup

Open tinect opened this issue 6 years ago • 10 comments

Description
I'd like to get some more options on default install-command with basic-setup. For us it's important to specify defaultLanguage, cause it is German instead of English.

tinect avatar Dec 17 '19 19:12 tinect

Hello @tinect,

thanks for the feedback. :+1: We want to gradually improve the system:install command, until it can replace the recovery install. PRs are welcome :-)

You can still use the cli installer from the recovery package. Just run php public/recovery/install/index.php. An example: https://github.com/shopware/platform/issues/223#issuecomment-537514926

pweyck avatar Dec 18 '19 10:12 pweyck

@pweyck unfortunately the referenced command in shopware/platform#223 is not working as the production template does not ship public/recovery/install/data/version :(

JoshuaBehrens avatar Feb 15 '20 19:02 JoshuaBehrens

@JoshuaBehrens You can generate that file yourself:

https://github.com/shopware/production/blob/4d56a22da4942c4db767e0dc2daac11aff93dae8/bin/package.sh#L32-L34

vintagesucks avatar Feb 16 '20 12:02 vintagesucks

Nice script. I wrote it manually and got it working but unfortunately it is not a simple one-liner

JoshuaBehrens avatar Feb 16 '20 23:02 JoshuaBehrens

Nice script. I wrote it manually and got it working but unfortunately it is not a simple one-liner

See https://github.com/shopware/production/issues/15

pweyck avatar Feb 24 '20 09:02 pweyck

Hello,

thank you for creating this issue. I have opened a ticket on our Issue Tracker for you. See the ticket link: https://issues.shopware.com/issues/NEXT-7251

Please use this ticket to track the state of your issue.

shopwareBot avatar Feb 24 '20 09:02 shopwareBot

Description I'd like to get some more options on default install-command with basic-setup. For us it's important to specify defaultLanguage, cause it is German instead of English.

You can specify shop locale, by passing --shop-locale variable to the cli installer.

php public/recovery/install/index.php \
        --no-interaction \
        --db-user=root \
        --db-password=password \
        --db-name="shopware" \
        --shop-locale=de-DE \
        --shop-country=AUT \
        --shop-host=shopware.test \
        --shop-path="" \
        --shop-name='CLI Installer test' \
        --shop-currency=EUR \
        --admin-username=demo \
        --admin-password=demo \
        [email protected] \
        --admin-locale=de-DE \
        --admin-firstname=Max \
        --admin-lastname=Mustermann

ddedic avatar Sep 30 '20 06:09 ddedic

Yes. But you are forced to have the shopware/recovery package for this :(

JoshuaBehrens avatar Sep 30 '20 08:09 JoshuaBehrens

@ddedic How do you use this? We found https://issues.shopware.com/issues/NEXT-7241 that states its just: system:install --shop-locale de-DE --shop-currency USD But it doesnt work. The help shows nothing about --shop-local. We have Shopware 6.4.6.1 cloned from prodction and installed via composer.

marvatis avatar Dec 06 '21 11:12 marvatis

For the production template the issue was fixed in this commit: https://github.com/shopware/production/commit/4a0cd7c022c3971d7e8dacaa4a1ec5fa6c954f2e

sadly that commit is not yet released, but it will be released in the upcoming version.

keulinho avatar Dec 06 '21 12:12 keulinho

Changing languages works now since some releases

shyim avatar Oct 25 '22 07:10 shyim