Skip to content
This repository was archived by the owner on Aug 1, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions provision-coursegraph.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ echo -e "${GREEN} Ensuring Coursegraph image is up to date...${NC}"
docker-compose rm --force --stop coursegraph
docker-compose pull coursegraph

echo -e "${GREEN} Starting Coursegraph and LMS...${NC}"
docker-compose up -d coursegraph lms
echo -e "${GREEN} Starting Coursegraph and CMS...${NC}"
docker-compose up -d coursegraph studio
sleep 10 # Give Neo4j some time to boot up.

echo -e "${GREEN} Updating LMS courses in Coursegraph...${NC}"
docker-compose exec lms bash -c 'source /edx/app/edxapp/edxapp_env && cd /edx/app/edxapp/edx-platform/ && ./manage.py lms dump_to_neo4j --host coursegraph.devstack.edx --user neo4j --password edx'
echo -e "${GREEN} Updating CMS courses in Coursegraph...${NC}"
docker-compose exec studio bash -c 'source /edx/app/edxapp/edxapp_env && cd /edx/app/edxapp/edx-platform/ && ./manage.py cms dump_to_neo4j --host coursegraph.devstack.edx --user neo4j --password edx'

echo -e "${GREEN} Coursegraph is now up-to-date with LMS!${NC}"
echo -e "${GREEN} Coursegraph is now up-to-date with CMS!${NC}"