diff --git a/.github/workflows/coverage.yaml b/.github/workflows/coverage.yaml index 85362ae917..2b883490d2 100644 --- a/.github/workflows/coverage.yaml +++ b/.github/workflows/coverage.yaml @@ -16,6 +16,8 @@ jobs: INVENTREE_DB_NAME: './test_db.sqlite' INVENTREE_DB_ENGINE: django.db.backends.sqlite3 INVENTREE_DEBUG: info + INVENTREE_MEDIA_ROOT: ./media + INVENTREE_STATIC_ROOT: ./static steps: - name: Checkout Code diff --git a/.github/workflows/mariadb.yaml b/.github/workflows/mariadb.yaml index 2ae02c2bd0..f976cfa088 100644 --- a/.github/workflows/mariadb.yaml +++ b/.github/workflows/mariadb.yaml @@ -16,6 +16,8 @@ jobs: INVENTREE_DB_HOST: '127.0.0.1' INVENTREE_DB_PORT: 3306 INVENTREE_DEBUG: info + INVENTREE_MEDIA_ROOT: ./media + INVENTREE_STATIC_ROOT: ./static services: mariadb: diff --git a/.github/workflows/mysql.yaml b/.github/workflows/mysql.yaml index 7d3ee8d6ae..70acad66a1 100644 --- a/.github/workflows/mysql.yaml +++ b/.github/workflows/mysql.yaml @@ -18,6 +18,8 @@ jobs: INVENTREE_DB_HOST: '127.0.0.1' INVENTREE_DB_PORT: 3306 INVENTREE_DEBUG: info + INVENTREE_MEDIA_ROOT: ./media + INVENTREE_STATIC_ROOT: ./static services: mysql: diff --git a/.github/workflows/postgresql.yaml b/.github/workflows/postgresql.yaml index aab05205cc..76981e5a1b 100644 --- a/.github/workflows/postgresql.yaml +++ b/.github/workflows/postgresql.yaml @@ -18,6 +18,8 @@ jobs: INVENTREE_DB_HOST: '127.0.0.1' INVENTREE_DB_PORT: 5432 INVENTREE_DEBUG: info + INVENTREE_MEDIA_ROOT: ./media + INVENTREE_STATIC_ROOT: ./static services: postgres: diff --git a/InvenTree/config_template.yaml b/InvenTree/config_template.yaml index c529182bb7..bab673306f 100644 --- a/InvenTree/config_template.yaml +++ b/InvenTree/config_template.yaml @@ -98,10 +98,12 @@ cors: # MEDIA_ROOT is the local filesystem location for storing uploaded files # By default, it is stored under /home/inventree +# Use environment variable INVENTREE_MEDIA_ROOT media_root: '/home/inventree/media' # STATIC_ROOT is the local filesystem location for storing static files # By default, it is stored under /home/inventree +# Use environment variable INVENTREE_STATIC_ROOT static_root: '/home/inventree/static' # Optional URL schemes to allow in URL fields @@ -115,6 +117,7 @@ static_root: '/home/inventree/static' # Backup options # Set the backup_dir parameter to store backup files in a specific location # If unspecified, the local user's temp directory will be used +# Use environment variable INVENTREE_BACKUP_DIR backup_dir: '/home/inventree/backup/' # Permit custom authentication backends