...
Note: Be careful about what version of the code you have since you can’t migrate back without the migration files filedx-secure to do this. Running migrations without s (except via GoCD)
Note also: you’ll need access to edx-secure to run migrate
. (One can run showmigrations
as documented below without such permissions.) Passwords (e.g. the ones here) are necessary to have access to a database user with sufficient permissions.
Example Flow:
Code Block |
---|
ssh <sre_user>@<ip_from_aws_console> sudo su - www-data -s /bin/bash cd /edx/app/<service>/ . venvs/<service>/bin/activate . <service>_env cd <service>/ (<service>) www-data@ip-10-3-117-24:/edx/app/ecommerce/ecommerce$ python manage.py showmigrations <model> communication [X] 0001_initial |
...