Hi,
got tutor openedx in non-production mode, tutor-discovery and tutor-mfe.
Need to get frontend-app-publisher. pip install git+https://github.com/edx/frontend-app-publisher.git don’t work - there is no setup.py.
So, tried to fix it manually (make from frontend-app-publisher/ or step-by-step from Makefile):
# The assumption behind running any of these make commands is that the user is
# already shelled into the container using the `make frontend-app-publisher-shell`
# command in devstack
npm-install-%: ## install specified % npm package on the cookie-cutter container
npm install $* --save-dev
git add package.json
validate-no-uncommitted-package-lock-changes:
git diff --exit-code package-lock.json
test:
npm test
snapshot:
npm run snapshot
lint:
bash -c 'npm run lint && npm run stylelint'
eslint-fix:
bash -c 'npm run lint-fix'
but i cant find any of frontend-app-publisher-shell entry(
Then, according to this conversation try to add plugin as yml:
Unfortunately, it’s not going to work straight out of the box, it requires some changes to the way routing is done in the MFE. (see changes in my fork)
That’s how far as I’ve got before I run out of time to dedicate to it. If I remember correctly, with the changes I was able to get the basic functionality working (i.e. create a new course run). I expect there are more challenges ahead because some of the logic seems very edX specific.
Happy to answer any questions if you’re interested in making it work! I might pick this back up in the near future but no guarantees.
Thank’s for quick reply!
Oh, it’s on /publisher link, i see) I just route my ports to find 18400’s listener aka netstat -anp | grep 18400. So, it’s empty page with the footer
No, from edx. Your fork faults because it hasn’t maple branch, i suppose:
Step 99/127 : RUN git clone https://github.com/Dicey-Tech/frontend-app-publisher --branch open-release/maple.1 --depth 1 .
---> Running in d8134fbabbbe
Cloning into '.'...
warning: Could not find remote branch open-release/maple.1 to clone.
fatal: Remote branch open-release/maple.1 not found in upstream origin
The command '/bin/sh -c git clone https://github.com/Dicey-Tech/frontend-app-publisher --branch open-release/maple.1 --depth 1 .' returned a non-zero code: 128
ERROR: Service 'mfe' failed to build : Build failed
Error: Command failed with status 1: docker-compose -f ***/.local/share/tutor/env/local/docker-compose.yml -f ***/.local/share/tutor/env/local/docker-compose.prod.yml --project-name tutor_local up --remove-orphans --build -d
(http:// for avoid error on build ?: (corsheaders.E013) Origin 'apps.local.overhang.io:18400' in CORS_ORIGIN_WHITELIST is missing scheme or netloc HINT: Add a scheme (e.g. https://) or netloc (e.g. example.com).)
and re-built by tutor local quickstart but still gets this error (request bloked by CORS)