1

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.

Khoa Truong
32.5k11 gold badges91 silver badges159 bronze badges
asked Jan 7, 2017 at 5:00
1
  • 3
    You can use php bin/magento deploy:mode:set developer from the magento root directory. Commented Jan 7, 2017 at 6:29

3 Answers 3

7

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)

answered Oct 15, 2017 at 14:28
2

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
answered Oct 15, 2017 at 14:16
0
0

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?

Rohan Hapani
17.6k9 gold badges57 silver badges99 bronze badges
answered May 9, 2018 at 4:32
1
  • 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??? Commented May 27, 2018 at 0:56

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.