Skip to content

Commit

Permalink
Compress offline
Browse files Browse the repository at this point in the history
  • Loading branch information
OdyX committed Mar 13, 2019
1 parent 9cc3e56 commit 1a363fc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions defivelo/settings/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,6 +168,7 @@
),
'bin', 'sassc') + ' {infile} {outfile}'),
)
COMPRESS_OFFLINE = True

# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
Expand Down
7 changes: 7 additions & 0 deletions fabfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,10 @@ def migrate_database():
return managepy('migrate')


def compress():
managepy('compress --force')


def collect_static():
managepy('collectstatic --noinput')

Expand Down Expand Up @@ -232,6 +236,7 @@ def bootstrap():
execute(install_requirements)
execute(collect_static)
execute(compile_messages)
execute(compress)
execute(document_git)
execute(migrate_database)

Expand All @@ -251,6 +256,8 @@ def deploy():
execute(document_git)
execute(migrate_database)

execute(compress)

execute(restart_process)
execute(clean_old_database_backups, nb_backups_to_keep=10)

Expand Down

0 comments on commit 1a363fc

Please sign in to comment.