Symfony2 Nginx Docker Deploy Script

Published on

#!/bin/bash COMPOSER_EXEC=/usr/local/bin/composer PHP_EXEC=/usr/bin/php WWW_DOC_ROOT=/var/www/production STAGING_DOC_ROOT=/var/www/staging die () { echo >&2 “$@” exit 1 } [ “$#” -eq 1 ] || die “Please provide a website name (folder) to deploy.” if echo “$1” | grep ‘staging’; then DOC_ROOT=$STAGING_DOC_ROOT/$1 else DOC_ROOT=$WWW_DOC_ROOT/$1 fi if [ ! -d “$DOC_ROOT” ]; then die “The specified directory ($DOC_ROOT) does not exist.” … Continue reading Symfony2 Nginx Docker Deploy Script