bitpay / magento2-plugin

Magento2.x payment plugin for Bitpay.com
MIT License
13 stars 24 forks source link

Fixed building package for Magento 2 and installation steps #32

Closed MarcinKozak closed 6 years ago

MarcinKozak commented 6 years ago

The script/package file contained code which is no longer valid for Magento 2 version. For this version all meta information must be inside the composer.json file. Also Matkerplace supports only .zip file (based on https://github.com/magento/marketplace-tools) but I left the .tgz file just in case.

Note about installation process.

All dependencies are installed automatically by Composer so there is no more need to include Bitpay PHP client to the package. From the build script were removed external packages which required run Composer install so this is no longer neccesary.

There are two ways to install module.

If the module will be put to the Magento Marketplace just run compores install bitpay/magento2-plugin (name can be other depend the Marketplace).

Or from local filesystem which requires these steps:

  1. run composer config repositories.local artifact temp-repos command in Magento root path. This will create new directory named "temp-repos" If you want a different name just change the last part of the composer command.

  2. To the new created directory put your module as ZIP package.

  3. Run compores install bitpay/magento2-plugin.

After that the module will be installed in the "vendor" directory with all dependencies. That means it will be not in the "app/code".

The next step is to type Magento commands:

php bin/magento module:enable Bitpay_Core
php bin/magento setup:upgrade
php bin/magento setup:di:compile