2021-10-28 11:32:36 +00:00
|
|
|
# List the start up tasks. Learn more https://www.gitpod.io/docs/config-start-tasks/
|
|
|
|
tasks:
|
2021-10-28 12:25:16 +00:00
|
|
|
- name: Setup django and start server
|
2021-10-28 12:11:02 +00:00
|
|
|
command: |
|
2021-10-28 11:32:36 +00:00
|
|
|
python3 -m venv venv
|
|
|
|
source venv/bin/activate
|
|
|
|
pip install invoke
|
2021-10-28 12:11:02 +00:00
|
|
|
inv install
|
2021-10-28 11:32:36 +00:00
|
|
|
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
|
2021-10-28 12:11:02 +00:00
|
|
|
env:
|
2021-10-28 11:32:36 +00:00
|
|
|
INVENTREE_DB_ENGINE: 'sqlite3'
|
|
|
|
INVENTREE_DB_NAME: '/workspace/data/database.sqlite3'
|
|
|
|
INVENTREE_MEDIA_ROOT: '/workspace/data/media'
|
|
|
|
INVENTREE_STATIC_ROOT: '/workspace/data/static'
|
2021-10-28 12:25:16 +00:00
|
|
|
PIP_USER: 'no'
|
2021-10-28 11:32:36 +00:00
|
|
|
|
|
|
|
# List the ports to expose. Learn more https://www.gitpod.io/docs/config-ports/
|
|
|
|
ports:
|
|
|
|
- port: 8000
|
|
|
|
onOpen: open-preview
|