Commit 16ff8483 authored by Georges Racinet's avatar Georges Racinet 🦑
Browse files

Heptapod: facility to restart the Rails application

parent 46a3c06e5739
...@@ -376,6 +376,13 @@ class DockerHeptapod(Heptapod): ...@@ -376,6 +376,13 @@ class DockerHeptapod(Heptapod):
self.prepare(self.users['root']['password']) self.prepare(self.users['root']['password'])
raise raise
def restart_rails(self):
logger.info("Restarting the Rails application.")
app_services = ('unicorn', 'sidekiq')
for service in app_services:
self.run_shell(('gitlab-ctl', 'restart', service))
self.wait_startup()
class SourceHeptapod(Heptapod): class SourceHeptapod(Heptapod):
"""An Heptapod server installed from source on the same system. """An Heptapod server installed from source on the same system.
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment