# 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)'
+# Update submodules
+./bin/update_submodules.sh
# Restore database
if [ "$1" = "--restore-db" ];
# 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)'
+
+# Update submodules
+./bin/update_submodules.sh
+
# Apply migrations
docker-compose run app python /srv/app/manage.py migrate
+
# Build front-end
./bin/build_front.sh
+
# Build documentation
docker-compose run app bash /srv/doc/build.sh