- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
would i try it into lightsail connect using ssh?
I have also followed this link:
http://devdocs.magento.com/guides/v2.0/config-guide/cli/config-cli-subcommands-mode.html
and the commands illustrated does not work on ssh? Please also note that i am using aws cloud 9 for adding my scripts and styles as this is why i need to change to developer mode.
Thank you for your help
Solved! Go to Solution.
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No , you have done it correctly , but you are in wrong directory - /home/bitnami
this is /home/bitnami but you need to run this command from your magento2 root directory , where you have installed magento2 in that directory you need to run this command.
so after login to this /home/bitnami change directory by cd command and go to your root directory where you have installed magento2 and then run command
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
this is what works and also you can change back to default....
On AWS Lightsail the tool is called magento instead.
sudo /opt/bitnami/apps/magento/htdocs/bin/magento deploy:mode:set developer
I changed it to default mode by using this path /apps/magento/htdocs/app/etc/env.php
then find where it says developer, and change it to default.
'MAGE_MODE' => 'default',
check in on my SSH and it says Default
Just Flush cache on ssh
sudo /opt/bitnami/apps/magento/htdocs/bin/magento cache:flush
there you go change to any mode follow above.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how do i change to developer mode on aws lightsail magento?
You have to obtain SSH credentials.
Once logged in go to magento root folder and run:
php bin/magento deploy:mode:set developer
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how do i change to developer mode on aws lightsail magento?
You can change developer mode from app/etc/env.php file as well.
you can run this command as well : php bin/magento deploy:mode:set developer
But you must required SSH access with php global environment setup ,so you can run directly commands from your magento 2 root directory.
Right now , might be php environment varriable is not set to global level so you are unable to run commands.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how do i change to developer mode on aws lightsail magento?
Hey kgerasimov,
thank you for all your help so far.
I got into my root folder by typing in sudo su on my lightsail ssh, but when i typed in:
php bin/magento deploy:mode:set developer
it didn't work.
came back as "could not open input file: bin/magento"
Am i doing something wrong?
Please advise
Rav
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how do i change to developer mode on aws lightsail magento?
Hey ManthanDave,
thank you for all your help so far.
I got into my root folder by typing in sudo su on my lightsail ssh, but when i typed in:
php bin/magento setup:deploy:mode:set developer
it didn't work, also i went to my aws cloud 9 for my file tree and found app/etc, but not env.php under etc.
is there something that i may be missing?
Thank you
Rav
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how do i change to developer mode on aws lightsail magento?
You are adding setup before the command , which is wrong.
you need to run below command :
php bin/magento deploy:mode:set developer
what error give , when you run this command ?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how do i change to developer mode on aws lightsail magento?
Hey ManthanDave,
it says the same thing could not open input file: Bin/magento.
Thank you for your help i really hope you can help me figure this out.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how do i change to developer mode on aws lightsail magento?
Looks like you are not running this command from magento 2 root directory.
give me path from where are you running this command ?
because you need to run this command from magento 2 root directory so.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Re: how do i change to developer mode on aws lightsail magento?
Hey ManthanDave,
Okay, so i run it from my SSH from AWS LightSail Instance.
Ityped in sudo su. then root (root@"my-IP":/home/bitnami#) opens up.
I type in "php bin/magento deploy:mode:set developer" and nothing happens.
Should i be doing this through my SSH? or should it be from my file tree where i can enter in code? if so what file path would this go under for me to change developer mode.
Thank you.
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
No , you have done it correctly , but you are in wrong directory - /home/bitnami
this is /home/bitnami but you need to run this command from your magento2 root directory , where you have installed magento2 in that directory you need to run this command.
so after login to this /home/bitnami change directory by cd command and go to your root directory where you have installed magento2 and then run command