Skip to content
Permalink
Browse files

Compress offline

  • Loading branch information...
OdyX committed Mar 13, 2019
1 parent 9cc3e56 commit 1a363fc1fd8d009100339ff6e642558cce031e45
Showing with 8 additions and 0 deletions.
  1. +1 −0 defivelo/settings/base.py
  2. +7 −0 fabfile.py
@@ -168,6 +168,7 @@
),
'bin', 'sassc') + ' {infile} {outfile}'),
)
COMPRESS_OFFLINE = True

# Database
# https://docs.djangoproject.com/en/1.8/ref/settings/#databases
@@ -136,6 +136,10 @@ def migrate_database():
return managepy('migrate')


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


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

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

@@ -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)

0 comments on commit 1a363fc

Please sign in to comment.
You can’t perform that action at this time.