Build getestet + MDX Erstmal entfernt

This commit is contained in:
Moritz Utcke
2024-03-04 14:11:47 +07:00
parent 26058e3205
commit 4f479b9c6c
22 changed files with 158 additions and 110 deletions

View File

@@ -25,15 +25,6 @@ docker stop $APP_NAME
docker rm $APP_NAME
docker build -t $APP_NAME .
# SECTION: Startup jobs zu crontab hinzufügen.
# Erstmal den cronfile leeren.
crontab -r;
# Alle builds schlagen fehl wenn die Datenbank nicht da ist, also muss der Container zuerst gebaut werden.
(crontab -l ; echo "@reboot sudo ~/database/build.sh &") | crontab -;
(crontab -l ; echo "@reboot sudo ~/apps/online-energieausweis/build.sh &") | crontab -;
(crontab -l ; echo "@reboot sudo ~/apps/layout-tool/build.sh &") | crontab -;
# Wir legen ein persistent directory an
PERSISTENT_DIR="${HOME}/persistent/online-energieausweis";
mkdir -p $PERSISTENT_DIR;
@@ -48,9 +39,6 @@ echo "CERTIFICATE=$(cat /etc/letsencrypt/live/ibcornelsen.de/fullchain.pem | bas
docker run -d --name $APP_NAME --link $DB_CONTAINER_NAME \
-v "${PERSISTENT_DIR}:/persistent" \
-p "${APP_PORT}:80" \
-e DB_CONNECTION=postgresql://${DB_USER}:${DB_PASSWORD}@${DB_CONTAINER_NAME}:${DB_PORT}/${DB_NAME} \
-e DB_PORT=${DB_PORT} \
--env-file ~/apps/${APP_NAME}/.env \
$APP_NAME;
# Crontab Updaten