forked from openedx-unsupported/devstack
-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathprovision-mktg.sh
More file actions
executable file
·23 lines (17 loc) · 1.04 KB
/
Copy pathprovision-mktg.sh
File metadata and controls
executable file
·23 lines (17 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
set -e
echo "** Bring Marketing up **"
docker compose `echo ${DOCKER_COMPOSE_FILES}` up -d mktg
echo "** Creating databases **"
echo "CREATE DATABASE IF NOT EXISTS marketingsite;" | docker exec -i edx.devstack.mysql mysql -uroot mysql
echo "** Marketing: Copy cacheed files to code dir **"
docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'cp -Rn /cache/* /app/.'
echo "** Marketing: Install requirements **"
docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'pip install -r requirements.txt'
echo "** Marketing: Migrating databases **"
docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'python manage.py migrate --settings=marketingsite.envs.dev'
echo "** Marketing: Compiling assets **"
docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'rm -rf node_modules/'
docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'yarn'
docker compose `echo ${DOCKER_COMPOSE_FILES}` exec mktg bash -c 'npm run dev'
echo "** Marketing: Restarting **"
docker compose `echo ${DOCKER_COMPOSE_FILES}` restart mktg