From 17920b259c727ec9715a63c657563feedab71be0 Mon Sep 17 00:00:00 2001 From: Matthias Mair Date: Thu, 28 Oct 2021 12:11:02 +0000 Subject: [PATCH] split up command --- .gitpod.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.gitpod.yml b/.gitpod.yml index 936ab6d41b..88d4fb47e1 100644 --- a/.gitpod.yml +++ b/.gitpod.yml @@ -1,14 +1,19 @@ # List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/ tasks: - - init: | - export PIP_USER=no + - name: Setup django + command: | python3 -m venv venv source venv/bin/activate pip install invoke + inv install + env: + PIP_USER: 'no' + - name: Start server + command: | 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 inv server - env: + env: INVENTREE_DB_ENGINE: 'sqlite3' INVENTREE_DB_NAME: '/workspace/data/database.sqlite3' INVENTREE_MEDIA_ROOT: '/workspace/data/media'