mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
trying the split again
This commit is contained in:
parent
8646943ebc
commit
fbaaf17d6a
13
.gitpod.yml
13
.gitpod.yml
@ -1,7 +1,7 @@
|
|||||||
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
|
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
|
||||||
tasks:
|
tasks:
|
||||||
- name: Setup django and start server
|
- name: Setup django
|
||||||
command: |
|
init: |
|
||||||
export INVENTREE_DB_ENGINE='sqlite3'
|
export INVENTREE_DB_ENGINE='sqlite3'
|
||||||
export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
|
export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
|
||||||
export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/dev/media'
|
export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/dev/media'
|
||||||
@ -15,6 +15,15 @@ tasks:
|
|||||||
mkdir dev
|
mkdir dev
|
||||||
inv update
|
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
|
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
|
inv server
|
||||||
env:
|
env:
|
||||||
INVENTREE_DB_ENGINE: 'sqlite3'
|
INVENTREE_DB_ENGINE: 'sqlite3'
|
||||||
|
Loading…
Reference in New Issue
Block a user