]> git.parisson.com Git - docker-django-scripts.git/commitdiff
Upadate front build script against new Mezzo arch
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 26 Oct 2017 21:22:19 +0000 (23:22 +0200)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Thu, 26 Oct 2017 21:22:19 +0000 (23:22 +0200)
build_front.sh
pull.sh

index 6cf2d1af0f965de6444a9076765f8fc6c0bde878..ecf7be0ac4d3688e4448fce223e6d3290aede30c 100755 (executable)
@@ -1,4 +1,4 @@
 #!/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
diff --git a/pull.sh b/pull.sh
index 8e6a36aed8f118c2082e0680ce8ca8f280af5998..1439544a6134d1e630ac8c4f755cd83aeb1e23d4 100755 (executable)
--- a/pull.sh
+++ b/pull.sh
@@ -6,16 +6,21 @@ sudo chown -R $USER var/backup
 
 # 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