+++ /dev/null
-#!/bin/sh
-
-# Delete all stopped containers (including data-only containers)
-docker rm $(docker ps -a -q)
-# Delete all 'untagged/dangling' (<none>) images
-docker rmi $(docker images -q -f dangling=true)
+++ /dev/null
-#!/bin/sh
-
-docker-compose -f docker-compose.yml -f env/staging.yml up
--- /dev/null
+#!/bin/sh
+
+# Delete all stopped containers (including data-only containers)
+docker rm $(docker ps -a -q)
+# Delete all 'untagged/dangling' (<none>) images
+docker rmi $(docker images -q -f dangling=true)
+++ /dev/null
-#!/bin/sh
-
-docker-compose run app python /srv/app/manage.py gulp
--- /dev/null
+#!/bin/sh
+
+docker-compose run app python /srv/app/manage.py gulp
+++ /dev/null
-#!/bin/sh
-
-# 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
-git pull
-
-# Update submodules
-./bin/update_submodules.sh
-
-# Restore database
-if [ "$1" = "--restore-db" ];
- then
- docker-compose run db /srv/bin/db/restore.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
--- /dev/null
+#!/bin/sh
+
+docker-compose -f docker-compose.yml -f env/staging.yml up
+++ /dev/null
-#!/bin/sh
-
-# Update main project
-git pull
-
-# Update submodules
-./bin/update_submodules.sh
-
-# Apply migrations
-if [ "$1" = "--migrate" ];
- then
- docker-compose run app python /srv/app/manage.py migrate
-fi
-
-# Build front-end
-./bin/build_front.sh
-
-# Build documentation
-docker-compose run app bash /srv/doc/build.sh
-
-# Reload Wsgi
-if [ "$1" = "-r" ];
- then
- touch app/wsgi.py
-fi
-
-# Install local cron to
-if [ "$1" = "--cron" ];
- then
- sudo cp ./etc/cron.d/* /etc/cron.d/
-fi