2021-10-29 16:05:25 +00:00
|
|
|
tasks:
|
|
|
|
- name: Setup django
|
2021-10-29 16:23:27 +00:00
|
|
|
before: |
|
2021-10-29 16:05:25 +00:00
|
|
|
export INVENTREE_DB_ENGINE='sqlite3'
|
|
|
|
export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
|
2021-10-29 16:23:27 +00:00
|
|
|
export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/inventree-data/media'
|
2021-10-29 16:05:25 +00:00
|
|
|
export INVENTREE_STATIC_ROOT='/workspace/InvenTree/dev/static'
|
|
|
|
export PIP_USER='no'
|
|
|
|
|
|
|
|
python3 -m venv venv
|
|
|
|
source venv/bin/activate
|
|
|
|
pip install invoke
|
|
|
|
mkdir dev
|
2022-07-21 01:41:42 +00:00
|
|
|
inv test-setup
|
|
|
|
gp sync-done start_server
|
2021-10-29 16:05:25 +00:00
|
|
|
|
|
|
|
- name: Start server
|
2022-07-21 01:41:42 +00:00
|
|
|
init: gp sync-await start_server
|
2021-10-29 16:05:25 +00:00
|
|
|
command: |
|
2022-07-21 01:41:42 +00:00
|
|
|
gp sync-await start_server
|
2021-10-29 16:05:25 +00:00
|
|
|
export INVENTREE_DB_ENGINE='sqlite3'
|
|
|
|
export INVENTREE_DB_NAME='/workspace/InvenTree/dev/database.sqlite3'
|
2021-10-29 16:23:27 +00:00
|
|
|
export INVENTREE_MEDIA_ROOT='/workspace/InvenTree/inventree-data/media'
|
2021-10-29 16:05:25 +00:00
|
|
|
export INVENTREE_STATIC_ROOT='/workspace/InvenTree/dev/static'
|
|
|
|
|
|
|
|
inv server
|
|
|
|
|
|
|
|
ports:
|
|
|
|
- port: 8000
|
|
|
|
onOpen: open-preview
|
|
|
|
|
|
|
|
github:
|
|
|
|
prebuilds:
|
|
|
|
master: true
|
|
|
|
pullRequests: false
|
|
|
|
pullRequestsFromForks: true
|
|
|
|
addBadge: true
|
|
|
|
addLabel: gitpod-ready
|
2021-10-29 16:23:27 +00:00
|
|
|
addCheck: false
|