6
0
mirror of https://github.com/ChristianLight/tutor.git synced 2024-12-12 14:17:46 +00:00
tutor/Makefile

42 lines
1.2 KiB
Makefile
Raw Normal View History

2017-12-26 00:16:35 +00:00
.PHONY: all configure build migrate assets up daemon
all: configure build migrate assets daemon
##################### Bootstrapping commands
configure:
./configure
build:
docker-compose build
migrate:
2017-12-26 00:16:35 +00:00
docker-compose run --rm lms bash -c "./wait-for-mysql.sh && ./manage.py lms migrate --settings=production"
docker-compose run --rm cms bash -c "./wait-for-mysql.sh && ./manage.py cms migrate --settings=production"
assets:
2017-12-26 00:16:35 +00:00
docker-compose run --rm lms paver update_assets lms --settings=production
docker-compose run --rm cms paver update_assets cms --settings=production
##################### Running commands
up:
docker-compose up
daemon:
docker-compose up -d && \
echo "Daemon is up and running"
stop:
docker-compose stop
##################### Additional commands
lms-shell:
2017-12-26 00:16:35 +00:00
docker-compose run --rm lms ./manage.py lms shell --settings=production
cms-shell:
2017-12-26 00:16:35 +00:00
docker-compose run --rm lms ./manage.py cms shell --settings=production
2017-09-19 08:54:45 +00:00
import-demo-course:
2017-12-26 00:16:35 +00:00
docker-compose run --rm cms /bin/bash -c "git clone https://github.com/edx/edx-demo-course ../edx-demo-course && git -C ../edx-demo-course checkout open-release/ginkgo.master && python ./manage.py cms --settings=production import ../data ../edx-demo-course"