I am inside the lms-shell
and would like to edit the configuration file lms.env.json
. Commands like vim
are not working.
How do I edit these files?
Installation details: IronWood on Linux with Docker
Did you try with vi
and nano
?
Installation details: IronWood on Linux with Docker
Since you’re using Docker then I assume it’s a devstack installation you have there.
In devstack using docker,settings loaded from {lms,cms}.{env,auth}.json
files are sometimes overridden by those of devstack.
Settings files are located in edx-platform/{lms,cms}/envs
Depending on your environment (devstack, or production) the loaded settings will differ. To ensure your settings are the ones used, they shouldn’t be overridden by any other settings from including files
1. Production:
- gunicorn loads
production.py
(you may use this file to define custom settings at the end) production.py
loadscommon.py
, then loads.env.json
and.auth.json
to override default values, use these.- In juniper and later JSON files are replaced by YAML files in
/edx/etc
2. Devstack using docker:
- runserver loads
devstack_docker.py
(use this preferably) devstack_docker.py
loadsdevstack.py
devstack.py
loadsproduction.py
production.py
loadscommon.py
, then loads.env.json
and.auth.json
.
When you decide to move from devstack to production, you should move all your custom settings from devstack_docker.py, devstack.py
to either json files (/edx/etc/*.yml
files in juniper or later) or ultimately to production.py
Thank you @ARMBouhali, but I think you are wrong!
devstack.py imports everything from production.py, therefore it includes all JSON settings.
check this line, please.
Regards
@mahyard I was indeed wrong. It’s strange I didn’t notice that so far
I’ve corrected my previous answer.
Thanks for the info.