fix : doc et script de déploiement
This commit is contained in:
@@ -5,6 +5,7 @@ set -euo pipefail
|
||||
# Requires: curl, tar, (optional) rsync
|
||||
#
|
||||
# Auth token: set RELEASE_TOKEN env var or create /etc/ferme-release-token
|
||||
umask 002
|
||||
|
||||
TAG="${1:-}"
|
||||
if [ -z "$TAG" ]; then
|
||||
@@ -71,18 +72,6 @@ fi
|
||||
|
||||
echo "Release ${TAG} deployed to ${DEPLOY_DIR}"
|
||||
|
||||
if [ -n "${DEPLOY_OWNER:-}" ]; then
|
||||
DEPLOY_GROUP="${DEPLOY_GROUP:-www-data}"
|
||||
DEPLOY_PERMS_SCOPE="${DEPLOY_PERMS_SCOPE:-var}"
|
||||
if [ "$DEPLOY_PERMS_SCOPE" = "all" ]; then
|
||||
chown -R "${DEPLOY_OWNER}:${DEPLOY_GROUP}" "$DEPLOY_DIR"
|
||||
chmod -R g+rx,o+rx "$DEPLOY_DIR"
|
||||
elif [ -d "${DEPLOY_DIR}/var" ]; then
|
||||
chown -R "${DEPLOY_OWNER}:${DEPLOY_GROUP}" "${DEPLOY_DIR}/var"
|
||||
chmod -R g+rwX "${DEPLOY_DIR}/var"
|
||||
fi
|
||||
fi
|
||||
|
||||
if [ -f "${DEPLOY_DIR}/.env.local" ]; then
|
||||
echo "Running migrations (if any)..."
|
||||
php "${DEPLOY_DIR}/bin/console" doctrine:migrations:migrate --no-interaction --env=prod
|
||||
|
||||
Reference in New Issue
Block a user