Add import-demo-course make command

This commit is contained in:
Régis Behmo 2017-09-19 10:54:45 +02:00
parent 52c8301f96
commit 61abe7691b
2 changed files with 12 additions and 1 deletions

View File

@ -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

View File

@ -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