Skip to content

Commit

Permalink
run restart script first if found
Browse files Browse the repository at this point in the history
  • Loading branch information
ahmednoureldeen committed Jun 16, 2020
1 parent 3e36003 commit 78717fc
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions cartoview/app_manager/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,11 @@ def restart_script(cls):
@classmethod
@restart_enabled
def restart_server(cls):
cls.django_reload()
cls.restart_script()
cls.cherry_restart()
if install_app_batch and os.path.exists(install_app_batch):
cls.restart_script()
else:
cls.django_reload()
cls.cherry_restart()

@classmethod
def cherry_restart(cls):
Expand Down

0 comments on commit 78717fc

Please sign in to comment.