I am in a Digital Ocean Ubuntu droplet trying to toggle development mode in my Magento installation so that I can develop a theme.
My problem is I can't figure out how to run magento deploy:mode:set developer
I gather I have to make the magento command global.
Well I tried: export PATH=/var/www/html/example.com/public_html/bin:$PATH
and that did not work.
If I type magento into the terminal it says Command Not Found.
Please assist.
3 Answers 3
Another method would be to use alias
touch ~/.bash_profile
nano ~/.bash_profile
then add
alias magento="php bin/magento"
Log out and back in or run
source ~/.bash_profile
You could change 'magento' to whatever you want (i.e 'm' or 'mage' etc)
On Ubuntu try:
touch ~/.bash_profile
nano ~/.bash_profile
add
export PATH="/path/to/magento/bin:$PATH"
Log out and back in or run
source ~/.bash_profile
I'm having the following issues:
php bin/magento deploy:mode:set developer
Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. Please read
http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html
cd /site php bin/magento
Magento supports PHP 5.6, 7.0.2, and 7.0.6 or later. Please read http://devdocs.magento.com/guides/v1.0/install-gde/system-requirements.html
Someone help?
-
Your PHP version should be in 5.3, 5.4 or 7.0 / 7.1 Check! What is the operating system Cpanel, VPS, Linux, Windows???PauloBoaventura– PauloBoaventura2018年05月27日 00:56:54 +00:00Commented May 27, 2018 at 0:56
php bin/magento deploy:mode:set developerfrom the magento root directory.