mirror of
https://github.com/inventree/InvenTree.git
synced 2025-04-30 20:46:47 +00:00
monolythic may be better
This commit is contained in:
parent
17920b259c
commit
40f9565a7a
@ -1,15 +1,11 @@
|
|||||||
# 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
|
- name: Setup django and start server
|
||||||
command: |
|
command: |
|
||||||
python3 -m venv venv
|
python3 -m venv venv
|
||||||
source venv/bin/activate
|
source venv/bin/activate
|
||||||
pip install invoke
|
pip install invoke
|
||||||
inv install
|
inv install
|
||||||
env:
|
|
||||||
PIP_USER: 'no'
|
|
||||||
- name: Start server
|
|
||||||
command: |
|
|
||||||
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
|
||||||
inv server
|
inv server
|
||||||
@ -18,6 +14,7 @@ tasks:
|
|||||||
INVENTREE_DB_NAME: '/workspace/data/database.sqlite3'
|
INVENTREE_DB_NAME: '/workspace/data/database.sqlite3'
|
||||||
INVENTREE_MEDIA_ROOT: '/workspace/data/media'
|
INVENTREE_MEDIA_ROOT: '/workspace/data/media'
|
||||||
INVENTREE_STATIC_ROOT: '/workspace/data/static'
|
INVENTREE_STATIC_ROOT: '/workspace/data/static'
|
||||||
|
PIP_USER: 'no'
|
||||||
|
|
||||||
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
|
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
|
||||||
ports:
|
ports:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user