I am developing a custom payment module in Magento2. I used http://inchoo.net/magento-2/implementing-payment-gateway-magento-2/ as example to build it.
I need to debug static code generation. Where are generated pub/static/
files ? What class/method
works to do it?
I'm going crazy to make this work on a develop server. I dont understand why method-renderer files are not loadng into http://myserver.com/pub/static/frontend/Magento/luma/es_AR/MyVendor_MyCustomPayment/js/view/payment/custom-payment.js when it exists in magento project (pub/static
).
I tried:
php bin/magento module:enable MyVendor_MyCustomPayment --clear-static-content
php bin/magento setup:upgrade
rm -rf var/di
php bin/magento setup:di:compile
php bin/magento --ansi setup:static-content:deploy es_AR
php bin/magento setup:static-content:deploy
- Verify file permissions:
(ls -la var/)
chown -R magento_user:www-data var/ pub/static/
find . -type d -exec chmod 770 {} \; && find . -type f -exec chmod 660 {} \; && chmod u+x bin/magento
var/generation
), but static file deployment, which seems to work fine for you. Something else is happening there. Double check file name and make sure this is correct. I had troubles with such files myself.