From 95b8d3894d631ac44fb295ee3ef46272c91983e4 Mon Sep 17 00:00:00 2001 From: Ahmed Jazzar Date: Mon, 29 Mar 2021 09:45:23 -0700 Subject: [PATCH] Remove default site creation commands --- README.rst | 24 +++++++++++++++++++----- tahoe.mk | 2 -- 2 files changed, 19 insertions(+), 7 deletions(-) diff --git a/README.rst b/README.rst index 4189dd35ac..633d7426ee 100644 --- a/README.rst +++ b/README.rst @@ -43,16 +43,30 @@ Tahoe is all about subdomains, so please add the following entries to your ``/et 127.0.0.1 edx.devstack.lms # Needed for devstack nascence 127.0.0.1 red.localhost # Your default site - 127.0.0.1 blue.localhost green.localhost # Create as many of those as you wish + 127.0.0.1 blue.devstack.tahoe green.devstack.tahoe # Create as many of those as you wish Where's my Site? ---------------- +To create a new site, please run the following commands in your devstack host: -Now you have a site of your own: +.. code:: + + $ make lms-shell + $ python manage.py lms create_devstack_site + $ make amc-shell + $ python manage.py create_devstack_site + + + +**Note** +``hostname`` should be ``localhost`` if your devstack is hosted locally, or any value from ``EDX_HOST_NAMES`` if you are using `Sultan `_. + + +Then you'll have a site of your own: - - **LMS:** http://red.localhost:18000/ - - **Studio:** http://localhost:18010/ - - **AMC:** http://localhost:13000/ + - **LMS:** http://.:18000/ + - **Studio:** http://:18010/ + - **AMC:** http://:13000/ Credentials are: diff --git a/tahoe.mk b/tahoe.mk index f384850abf..ec153c14ed 100644 --- a/tahoe.mk +++ b/tahoe.mk @@ -33,9 +33,7 @@ tahoe.restart: ## Restarts both of LMS and Studio python processes while keepin amc.provision: ## Initializes the AMC docker exec -it tahoe.$(COMPOSE_PROJECT_NAME).amc python manage.py migrate make COMMAND='python manage.py lms create_dot_application --grant-type password --redirect-uris=http://localhost:13000 --skip-authorization --client-id=6f2b93d5c02560c3f93f --client-secret=2c6c9ac52dd19d7255dd569fb7eedbe0ebdab2db AMC edx' SERVICE='lms' tahoe.exec.single - make COMMAND='python manage.py lms create_devstack_site red' SERVICE='lms' tahoe.exec.single docker exec -it tahoe.$(COMPOSE_PROJECT_NAME).amc python manage.py create_devstack_superuser - docker exec -it tahoe.$(COMPOSE_PROJECT_NAME).amc python manage.py create_devstack_site red docker exec -it tahoe.$(COMPOSE_PROJECT_NAME).amc-frontend npm install amc.activation_links: ## List activation links from the AMC log