mirror of
https://github.com/inventree/InvenTree.git
synced 2025-05-02 13:28:49 +00:00
Merge pull request #1495 from matmair/feature/performance-op
performance improvments docker
This commit is contained in:
commit
99060159e3
1
.github/workflows/coverage.yaml
vendored
1
.github/workflows/coverage.yaml
vendored
@ -32,6 +32,7 @@ jobs:
|
|||||||
sudo apt-get install gettext
|
sudo apt-get install gettext
|
||||||
pip3 install invoke
|
pip3 install invoke
|
||||||
invoke install
|
invoke install
|
||||||
|
invoke static
|
||||||
- name: Coverage Tests
|
- name: Coverage Tests
|
||||||
run: |
|
run: |
|
||||||
invoke coverage
|
invoke coverage
|
||||||
|
@ -27,6 +27,11 @@ server {
|
|||||||
location /static/ {
|
location /static/ {
|
||||||
alias /var/www/static/;
|
alias /var/www/static/;
|
||||||
autoindex on;
|
autoindex on;
|
||||||
|
|
||||||
|
# Caching settings
|
||||||
|
expires 30d;
|
||||||
|
add_header Pragma public;
|
||||||
|
add_header Cache-Control "public";
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
@ -39,6 +39,7 @@ echo "Running InvenTree database migrations and collecting static files..."
|
|||||||
python manage.py check || exit 1
|
python manage.py check || exit 1
|
||||||
python manage.py migrate --noinput || exit 1
|
python manage.py migrate --noinput || exit 1
|
||||||
python manage.py migrate --run-syncdb || exit 1
|
python manage.py migrate --run-syncdb || exit 1
|
||||||
|
python manage.py prerender || exit 1
|
||||||
python manage.py collectstatic --noinput || exit 1
|
python manage.py collectstatic --noinput || exit 1
|
||||||
python manage.py clearsessions || exit 1
|
python manage.py clearsessions || exit 1
|
||||||
|
|
||||||
|
@ -39,6 +39,7 @@ echo "Running InvenTree database migrations and collecting static files..."
|
|||||||
python manage.py check || exit 1
|
python manage.py check || exit 1
|
||||||
python manage.py migrate --noinput || exit 1
|
python manage.py migrate --noinput || exit 1
|
||||||
python manage.py migrate --run-syncdb || exit 1
|
python manage.py migrate --run-syncdb || exit 1
|
||||||
|
python manage.py prerender || exit 1
|
||||||
python manage.py collectstatic --noinput || exit 1
|
python manage.py collectstatic --noinput || exit 1
|
||||||
python manage.py clearsessions || exit 1
|
python manage.py clearsessions || exit 1
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user