You can install Rocket Javascript by Magefan, using composer or archive installation methods.
Do you want us to install and configure the Rocket JavaScript extension for you? Let our technical engineers do it – check out our installation service.
Post Contents [hide]
Installation via composer (recommended)
- Open command line.
- Using command "cd" navigate to your Magento 2 root directory.
- Run CLI commands:
composer require magefan/module-rocketjavascript
# Authentication required (repo.magento.com)
# Get your Magento Marketplace authentication keys or use these:
# Username: 7c018006799466c681ad507e27904677
# Password: 289077c86e811661a8f7751828485d3a
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Note: if you don't want your website to be down during deployment, try these zero downtime deployment commands for Magento 2.
Installation using archive and FTP
- Download Rocket Javascript ZIP-Archive from magefan.com website (not GitHub or other sources).
- Extract files.
- Copy app folder from the archive to your Magento 2 folder.
-
In a command line, using "cd", navigate to your Magento 2 root directory.
- Run CLI commands:
php bin/magento setup:upgrade
php bin/magento setup:di:compile
php bin/magento setup:static-content:deploy
Once you have installed the Magento 2 Rocket JavaScript extension you can start the extension configuration.
1 exception(s):
Exception #0 (Magento\Framework\ Exception\FileSystemException): The path "/var/www/html/pub/static/frontend/ bluesky/bluesky_armania_market_4/ en_GB/requirejs-config.js" is not writable.
1 exception(s):
Exception #0 (Magento\Framework\Exception\FileSystemException): The path "/var/www/html/pub/ static/adminhtml/ Magento/backend/en_US/requirejs-config.js" is not writable.
___________________
Magefan comment:
Please note that this error is related to the rights on your server.
To fix it, you should change the owner of the pub folder to the owner of Magento one.