From c528dd3de12d83bf42ce69039d5ad7cf63840623 Mon Sep 17 00:00:00 2001 From: wh1te909 Date: Fri, 20 Aug 2021 08:23:16 +0000 Subject: [PATCH] attempt to fix pipelines --- api/tacticalrmm/tacticalrmm/settings.py | 1 + azure-pipelines.yml | 1 + 2 files changed, 2 insertions(+) diff --git a/api/tacticalrmm/tacticalrmm/settings.py b/api/tacticalrmm/tacticalrmm/settings.py index db322667..e95dd08d 100644 --- a/api/tacticalrmm/tacticalrmm/settings.py +++ b/api/tacticalrmm/tacticalrmm/settings.py @@ -190,6 +190,7 @@ LOGGING = { } if "AZPIPELINE" in os.environ: + print("PIPELINE") DATABASES = { "default": { "ENGINE": "django.db.backends.postgresql", diff --git a/azure-pipelines.yml b/azure-pipelines.yml index 8f2a9160..86b474fd 100644 --- a/azure-pipelines.yml +++ b/azure-pipelines.yml @@ -20,6 +20,7 @@ jobs: sudo -u postgres psql -c 'DROP DATABASE IF EXISTS pipeline' sudo -u postgres psql -c 'DROP DATABASE IF EXISTS test_pipeline' sudo -u postgres psql -c 'CREATE DATABASE pipeline' + sudo -u postgres psql -c "SET client_encoding = 'UTF8'" pipeline SETTINGS_FILE="/myagent/_work/1/s/api/tacticalrmm/tacticalrmm/settings.py" rm -rf /myagent/_work/1/s/api/env cd /myagent/_work/1/s/api