Cookies werden für alle Subdomains gesetzt

This commit is contained in:
Moritz Utcke
2023-05-18 19:40:26 +04:00
parent f14aa4d7c6
commit 28b3ea983a
3 changed files with 9 additions and 14 deletions

View File

@@ -8,7 +8,6 @@ DB_NAME="main"
DB_USER="main"
DB_PASSWORD="hHMP8cd^N3SnzGRR"
DB_PORT=5432
DB_VOLUME="postgres_data"
git_pull_force() {
git reset --hard HEAD
@@ -26,13 +25,5 @@ docker stop $APP_NAME
docker rm $APP_NAME
docker build -t $APP_NAME .
# Danach machen wir ein Backup der Datenbank, falls bei der Migration etwas schiefgehen sollte.
cd ~/backups/
BACKUP_FILENAME="$(date +"%Y-%m-%d_%H-%M-%S").sql.gz"
docker exec -t $DB_CONTAINER_NAME pg_dumpall -c -U $DB_USER | gzip > $BACKUP_FILENAME
# Und starten unsere App wieder.
docker run -d --name $APP_NAME --link $DB_CONTAINER_NAME -p "$APP_PORT:80" -e DB_CONNECTION=postgresql://$DB_USER:$DB_PASSWORD@${DB_CONTAINER_NAME}:$DB_PORT/$DB_NAME -e DB_PORT=$DB_PORT $APP_NAME
# Das Backup lassen wir da, falls irgendwas schief gehen sollte.
docker run -d --name $APP_NAME --link $DB_CONTAINER_NAME -p "$APP_PORT:80" -e DB_CONNECTION=postgresql://$DB_USER:$DB_PASSWORD@${DB_CONTAINER_NAME}:$DB_PORT/$DB_NAME -e DB_PORT=$DB_PORT $APP_NAME