diff --git a/Makefile b/Makefile index 4209ad1..ad63e34 100644 --- a/Makefile +++ b/Makefile @@ -10,3 +10,10 @@ lms-shell: docker-compose run lms ./manage.py lms shell --settings=production cms-shell: docker-compose run lms ./manage.py cms shell --settings=production + +import-demo-course: + docker-compose run cms git clone https://github.com/edx/edx-demo-course ../edx-demo-course && \ + cd ../edx-demo-course && \ + git checkout open-release/ginkgo.master && \ + cd ../edx-platform && \ + python ./manage.py cms --settings=production import ../data ../edx-demo-course diff --git a/README.md b/README.md index 6797f4c..7bbacd4 100644 --- a/README.md +++ b/README.md @@ -8,7 +8,7 @@ The production stack is sufficient for a minimal production deployment of Open e Prepare build: - make directories + make directories Build and run: @@ -26,6 +26,10 @@ On the first run you will need to migrate the database and collect static assets make migrate make assets +To import the Open edX demo course, run: + + make import-demo-course + To daemonize: docker-compose up -d