From fbaaf17d6a9a6da14a3c1ccbebbaba0c5a7e3ff6 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 28 Oct 2021 12:59:51 +0000 Subject: [PATCH] trying the split again --- .gitpod.yml | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 94234de6f2..4c68101ad7 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,7 +1,7 @@ # List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ tasks: - - name: Setup django and start server - command: | + - name: Setup django + init: | export INVENTREE_DB_ENGINE='sqlite3' export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3' export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/dev/media' @@ -15,6 +15,15 @@ tasks: mkdir dev inv update echo "from django.contrib.auth import get_user_model; User = get_user_model(); User.objects.create_superuser('admin', 'test@test.com', 'inventree')" | python InvenTree/manage.py shell + env: + INVENTREE_DB_ENGINE: 'sqlite3' + INVENTREE_DB_NAME: '/workspace/data/database.sqlite3' + INVENTREE_MEDIA_ROOT: '/workspace/data/media' + INVENTREE_STATIC_ROOT: '/workspace/data/static' + PIP_USER: 'no' + + - name: Start server + command: | inv server env: INVENTREE_DB_ENGINE: 'sqlite3'