try again with nginx restart in deploy test docker

This commit is contained in:
einhornimmond 2025-05-08 18:52:13 +02:00
parent 820f7882b1
commit 279ec8c019
2 changed files with 2 additions and 4 deletions

View File

@ -102,5 +102,4 @@ WORKDIR /app/gradido/deployment/bare_metal
RUN echo -e '#!/bin/bash\nshift 0\nexec "$@"' > /usr/local/bin/sudo && \
chmod +x /usr/local/bin/sudo
SHELL ["/bin/bash", "--login", "-c"]
ENV URL_PROTOCOL=http
RUN ./start.sh $BRANCH_NAME
RUN URL_PROTOCOL=http ./start.sh $BRANCH_NAME

View File

@ -328,8 +328,7 @@ done
log_step 'Configuring nginx to serve gradido again'
ln -sf $SCRIPT_DIR/nginx/sites-available/gradido.conf $SCRIPT_DIR/nginx/sites-enabled/default
sudo nginx -t
sudo /etc/init.d/nginx restart || log_error "Failed to restart nginx $(sudo nginx -t)"
log_warn sudo nginx -t
sudo /etc/init.d/nginx restart
# keep the update log
cat $UPDATE_HTML >> $GRADIDO_LOG_PATH/update.$TODAY.log