Here are the steps I already done, but still couldn't figure out to to setup local development environment from Commerce Cloud.

  1. git pull the dev branch from magento commerce cloud

  2. export database dump and import to the local enviroment

  3. modify and base urls in core_config_data table

  4. download the media files into /pub/media from dev branch

  5. run "composer install" locally

  6. run magento installation command "bin/magento setup:install ..." but getting the following error,

    Fatal error: Uncaught Error: Class 'Locale' not found in /usr/local/var/www/magento2/vendor/magento/framework/Locale/Bundle/DataBundle.php:64 Stack trace: #0 /usr/local/var/www/magento2/vendor/magento/framework/Locale/Bundle/DataBundle.php(28): Magento\Framework\Locale\Bundle\DataBundle->cleanLocale('en_US') #1 /usr/local/var/www/magento2/vendor/magento/framework/Setup/Lists.php(96): Magento\Framework\Locale\Bundle\DataBundle->get('en_US') #2 /usr/local/var/www/magento2/vendor/magento/framework/Validator/Locale.php(42): Magento\Framework\Setup\Lists->getLocaleList() #3 /usr/local/var/www/magento2/setup/src/Magento/Setup/Console/Command/InstallStoreConfigurationCommand.php(321): Magento\Framework\Validator\Locale->isValid('en_US') #4 /usr/local/var/www/magento2/setup/src/Magento/Setup/Console/Command/InstallStoreConfigurationCommand.php(241): Magento\Setup\Console\Command\InstallStoreConfigurationCommand->validateCodes(Object(Magento\Framework\Validator\Locale), 'en_US', 'language') #5 /usr/local/var/www/magento2/setup/src in /usr/local/var/www/magento2/vendor/magento/framework/Locale/Bundle/DataBundle.php on line 64

however, when i check ➜ magento2 php -i | grep "Internationalization support" is says "Internationalization support => enabled"

My Other Confusion: With Magento Open Source, I used to just change the database connection through app/etc/env.php, but with the files i pulled from magento cloud commerce, its missing app/etc/env.php

how do i set up database connection correctly for local?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.