]> git.parisson.com Git - docker-django-scripts.git/commitdiff
Update paths
authorGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 6 Mar 2018 17:33:45 +0000 (18:33 +0100)
committerGuillaume Pellerin <guillaume.pellerin@ircam.fr>
Tue, 6 Mar 2018 17:33:45 +0000 (18:33 +0100)
build/local/messages.sh
build/readme.sh
dev/pull.sh [deleted file]
dev/pull_data.sh [new file with mode: 0755]
dev/restore_db.sh
prod/backup_db.sh
prod/push.sh [deleted file]
prod/push_data.sh [new file with mode: 0755]
tmp/mezzo-push.sh [deleted file]
tmp/update_translation_fields.sh [deleted file]

index 0d0c263314a21282b922333f48fb60b2b1533733..5fe3892ccf0a38914b198b3f711078bb0bb1e9f1 100755 (executable)
@@ -1,4 +1,5 @@
 # docker-compose run app python manage.py compilemessages
+
 cd /srv
 
 find $(pwd)  -type d -name 'locale' -print | while read f; do
index 65157276d3fa2bc18501b858534cb1f0894def1e..a22fb8cc119f549ff2e6062cb7ed2b3a9a7056aa 100755 (executable)
@@ -3,4 +3,5 @@
 cd "$(dirname "$0")"/../../
 
 cat doc/src/overview.rst doc/src/architecture.rst doc/src/install.rst doc/src/development.rst doc/src/maintenance.rst doc/src/copyright.rst doc/src/license.rst > README.rst
+
 echo "Build finished. The README.rst file is up to date."
diff --git a/dev/pull.sh b/dev/pull.sh
deleted file mode 100755 (executable)
index 556e135..0000000
+++ /dev/null
@@ -1,22 +0,0 @@
-#!/bin/bash
-
-cd "$(dirname "$0")"/../../
-
-# We need to chown folders as they are docker's volumes
-sudo chown -R $USER var/media
-sudo chown -R $USER var/backup
-
-# Update main project and submodules
-./bin/dev/update.sh
-
-# Restore database
-if [ "$1" = "--restore-db" ]; then
-    docker-compose run db /srv/bin/dev/restore_db.sh
-fi
-
-# We need to chown folders as they are docker's volumes
-# (do not work on OSX, hence the test)
-if ! uname -a | grep Darwin > /dev/null; then
-  sudo chown -R www-data var/media
-  sudo chown -R root var/backup
-fi
diff --git a/dev/pull_data.sh b/dev/pull_data.sh
new file mode 100755 (executable)
index 0000000..41936d9
--- /dev/null
@@ -0,0 +1,21 @@
+#!/bin/bash
+
+cd "$(dirname "$0")"/../../var
+
+# We need to chown folders as they are docker's volumes
+sudo chown -R $USER media
+sudo chown -R $USER backup
+
+git pull
+
+# Restore database
+if [ "$1" = "--restore-db" ]; then
+    docker-compose run db /srv/bin/dev/restore_db.sh
+fi
+
+# We need to chown folders as they are docker's volumes
+# (do not work on OSX, hence the test)
+if ! uname -a | grep Darwin > /dev/null; then
+  sudo chown -R www-data media
+  sudo chown -R root backup
+fi
index 8b9e895550f939dd59bdefc7e7a4a28d70936fc1..53b9bc4f770e9c68094f10b308f8e1c391d55daf 100755 (executable)
@@ -1,3 +1,3 @@
 #!/bin/sh
 
-docker-compose run db /srv/bin/db/restore.sh
+docker-compose run db /srv/bin/dev/local/restore_db.sh
index c8d89046f4e3c310302b7a34ecbf4a60df2d0aae..91d789a32af1508ee35695226ff6cf30cb0a4848 100755 (executable)
@@ -1,3 +1,3 @@
  #!/bin/sh
 
-  docker-compose run db /srv/bin/prod/local/backup_db.sh
+docker-compose run db /srv/bin/prod/local/backup_db.sh
diff --git a/prod/push.sh b/prod/push.sh
deleted file mode 100755 (executable)
index 8f06240..0000000
+++ /dev/null
@@ -1,15 +0,0 @@
-#!/bin/bash
-
-cd "$(dirname "$0")"/../../
-
-echo "----------------------------"
-echo `date +\%Y\%m\%d-\%H-\%M-\%S`
-
-docker-compose run db /srv/bin/prod/backup_db.sh
-
-cd var
-
-git add .
-git commit -a -m "update DB and media"
-git pull
-git push
diff --git a/prod/push_data.sh b/prod/push_data.sh
new file mode 100755 (executable)
index 0000000..2288589
--- /dev/null
@@ -0,0 +1,13 @@
+#!/bin/bash
+
+echo "----------------------------"
+echo `date +\%Y\%m\%d-\%H-\%M-\%S`
+
+./backup_db.sh
+
+cd "$(dirname "$0")"/../../var
+
+git add .
+git commit -a -m "update DB and media"
+git pull
+git push
diff --git a/tmp/mezzo-push.sh b/tmp/mezzo-push.sh
deleted file mode 100755 (executable)
index 7a5d2a3..0000000
+++ /dev/null
@@ -1,7 +0,0 @@
-echo "----------------------------"
-echo `date +\%Y\%m\%d-\%H-\%M-\%S`
-docker-compose run db /srv/bin/db/backup.sh
-git add var
-git commit -a -m "update DB and media"
-git pull
-git push
diff --git a/tmp/update_translation_fields.sh b/tmp/update_translation_fields.sh
deleted file mode 100755 (executable)
index 66f3479..0000000
+++ /dev/null
@@ -1,3 +0,0 @@
-#!/bin/sh
-
-git submodule update --recursive --remote