Merge pull request #1495 from matmair/feature/performance-op

performance improvments docker
This commit is contained in:
Oliver 2021-04-22 08:53:00 +10:00 committed by GitHub
commit 99060159e3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 0 deletions

View File

@ -32,6 +32,7 @@ jobs:
sudo apt-get install gettext
pip3 install invoke
invoke install
invoke static
- name: Coverage Tests
run: |
invoke coverage

View File

@ -27,6 +27,11 @@ server {
location /static/ {
alias /var/www/static/;
autoindex on;
# Caching settings
expires 30d;
add_header Pragma public;
add_header Cache-Control "public";
}
}

View File

@ -39,6 +39,7 @@ echo "Running InvenTree database migrations and collecting static files..."
python manage.py check || exit 1
python manage.py migrate --noinput || 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 clearsessions || exit 1

View File

@ -39,6 +39,7 @@ echo "Running InvenTree database migrations and collecting static files..."
python manage.py check || exit 1
python manage.py migrate --noinput || 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 clearsessions || exit 1