magestead
magestead copied to clipboard
Exception on loading sample data
I get the following
[Composer\Downloader\TransportException] Your configuration does not allow connection to http://packagist.org. See https://getcomposer.org/doc/06-config.md# secure-http for details.
🤔 This is a new one. Do you have steps to reproduce? Are you running this from your host machine or from the guest?
If I select "Install sample data" on initial project creation it fails. If I then ssh into the guest, update composer and run "magento sampledata:deploy" it fails with same error. If I set "secure-http: false" I get some zlib error.
Trying CentOS next to see if that makes any difference.
Running php 7.0.12 on MacOS 10.12.1
Work around was to install manually
git clone https://github.com/magento/magento2-sample-data.git <sample-data folder>
php -f <sample-data folder>/dev/tools/build-sample-data.php -- --ce-source="<install folder>"
bin/magento setup:upgrade