Add import-demo-course make command
This commit is contained in:
parent
52c8301f96
commit
61abe7691b
7
Makefile
7
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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue