#!/bin/sh
-docker-compose run app bash -c "cd /srv && bower --allow-root install && gulp build"
+docker-compose run app python /srv/app/manage.py build-front
docker-compose run app python /srv/app/manage.py collectstatic --no-input
# Update main project
git pull
+
# Synchronizes submodules' remote URL configuration setting to the value specified in .gitmodules
git submodule sync
+
# Checkout all submodules on right branches specified in .gitmodules, by default the branch is master
git submodule foreach --recursive 'git checkout $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)'
+
# Pull all submodules on right branches specified in .gitmodules, by default the branch is master
git submodule foreach --recursive 'git pull origin $(git config -f $toplevel/.gitmodules submodule.$name.branch || echo master)'
+
# Restore database
if [ "$1" = "--restore-db" ];
then
docker-compose run db /srv/bin/db/restore.sh
fi
+
# Build front-end
-docker-compose run app bash -c "cd /srv && bower --allow-root install && gulp build"
+docker-compose run app python /srv/app/manage.py build-front